aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-14 11:59:50 +0000
committerGravatar jesopo2019-11-14 11:59:50 +0000
commitcf5294a8354e07bf73a9feff89e9300469805d31 (patch)
tree56e7e89174cbaf0a8c60eb0c2ce8c413a6857fc0
parenttypo, 'prettyb' -> 'pretty (diff)
signature
don't duplicate `event["user"].nickname` for prettified invite format
-rw-r--r--modules/format_activity.py4
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)