don't duplicate event["user"].nickname
for prettified invite format
This commit is contained in:
parent
c5870e3d36
commit
cf5294a835
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue