don't duplicate event["user"].nickname for prettified invite format

This commit is contained in:
jesopo 2019-11-14 11:59:50 +00:00
parent c5870e3d36
commit cf5294a835

View file

@ -173,9 +173,9 @@ class Module(ModuleManager.BaseModule):
format = "%s invited %s to %s" % ("%s", "%s", event["target_channel"]) format = "%s invited %s to %s" % ("%s", "%s", event["target_channel"])
minimal = format % (event["user"].nickname, minimal = format % (event["user"].nickname,
event["target_user"].nickname) event["target_user"].nickname)
normal = minimal normal = "- %s" % minimal
pretty = format % (self._color(event["user"].nickname), 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"], self._event("invite", event["server"], normal, event["target_channel"],
minimal=minimal, pretty=pretty) minimal=minimal, pretty=pretty)