diff options
| author | 2019-11-14 11:59:50 +0000 | |
|---|---|---|
| committer | 2019-11-14 11:59:50 +0000 | |
| commit | cf5294a8354e07bf73a9feff89e9300469805d31 (patch) | |
| tree | 56e7e89174cbaf0a8c60eb0c2ce8c413a6857fc0 /modules | |
| parent | typo, 'prettyb' -> 'pretty (diff) | |
| signature | ||
don't duplicate `event["user"].nickname` for prettified invite format
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/format_activity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/format_activity.py b/modules/format_activity.py index d0080efb..c714bcd3 100644 --- a/modules/format_activity.py +++ b/modules/format_activity.py @@ -173,9 +173,9 @@ class Module(ModuleManager.BaseModule): format = "%s invited %s to %s" % ("%s", "%s", event["target_channel"]) minimal = format % (event["user"].nickname, event["target_user"].nickname) - normal = minimal + normal = "- %s" % minimal pretty = format % (self._color(event["user"].nickname), - self._color(event["user"].nickname)) + self._color(event["target_user"].nickname)) self._event("invite", event["server"], normal, event["target_channel"], minimal=minimal, pretty=pretty) |
