From cf5294a8354e07bf73a9feff89e9300469805d31 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 14 Nov 2019 11:59:50 +0000 Subject: [PATCH] don't duplicate `event["user"].nickname` for prettified invite format --- modules/format_activity.py | 4 ++-- 1 file 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)