nickname
doesn't exist in _on_part, should be user.nickname
This commit is contained in:
parent
b96d8d2d80
commit
736c125b98
1 changed files with 3 additions and 3 deletions
|
@ -127,11 +127,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
reason = "" if not reason else " (%s)" % reason
|
reason = "" if not reason else " (%s)" % reason
|
||||||
|
|
||||||
format = "%s left %s%s" % ("%s", event["channel"].name, reason)
|
format = "%s left %s%s" % ("%s", event["channel"].name, reason)
|
||||||
minimal = format % nickname
|
minimal = format % user.nickname
|
||||||
|
|
||||||
normal_format = "- %s" % format
|
normal_format = "- %s" % format
|
||||||
normal = normal_format % nickname
|
normal = normal_format % user.nickname
|
||||||
pretty = normal_format % self._color(nickname)
|
pretty = normal_format % self._color(user.nickname)
|
||||||
|
|
||||||
self._event("part", event["server"], normal, event["channel"].name,
|
self._event("part", event["server"], normal, event["channel"].name,
|
||||||
channel=event["channel"], user=user, minimal=minimal, pretty=pretty)
|
channel=event["channel"], user=user, minimal=minimal, pretty=pretty)
|
||||||
|
|
Loading…
Reference in a new issue