diff options
| author | 2019-11-11 12:49:45 +0000 | |
|---|---|---|
| committer | 2019-11-11 12:49:45 +0000 | |
| commit | 8a8bd8a77e7a247747b9815c12ef82ed0a44d862 (patch) | |
| tree | 999922bb10f70bfcb10ca3c1416947bb3f08cd6f /modules | |
| parent | hash_colorize code should first be looked up in HASH_COLORS (diff) | |
| signature | ||
colorize nicks on JOIN formatting
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/format_activity.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/format_activity.py b/modules/format_activity.py index 6ed6b8cc..1e7f540e 100644 --- a/modules/format_activity.py +++ b/modules/format_activity.py @@ -82,8 +82,10 @@ class Module(ModuleManager.BaseModule): event["user"].nickname) def _on_join(self, event, user): - line = "- %s joined %s" % (user.hostmask(), event["channel"].name) - minimal_line = "%s joined %s" % (user.nickname, event["channel"].name) + nickname = self._colorize(user.nickname) + hostmask = "%s!%s" % (nickname, user.userhost()) + line = "- %s joined %s" % (hostmask, event["channel"].name) + minimal_line = "%s joined %s" % (nickname, event["channel"].name) self._event("join", event["server"], line, event["channel"].name, channel=event["channel"], user=user, minimal=minimal_line) |
