nickname doesn't exist in _on_part, should be user.nickname

This commit is contained in:
jesopo 2019-11-14 12:18:11 +00:00
parent b96d8d2d80
commit 736c125b98

View file

@ -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)