aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-14 12:18:11 +0000
committerGravatar jesopo2019-11-14 12:18:11 +0000
commit736c125b98054df40606b07d547d72669998b4a8 (patch)
tree229343958fcacfa343f3c64d0e09ae165d725ad7 /modules
parenttypo, 'mode_str' -> 'modes_str' (diff)
signature
`nickname` doesn't exist in _on_part, should be user.nickname
Diffstat (limited to 'modules')
-rw-r--r--modules/format_activity.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/format_activity.py b/modules/format_activity.py
index afaf4b38..48877d45 100644
--- a/modules/format_activity.py
+++ b/modules/format_activity.py
@@ -127,11 +127,11 @@ class Module(ModuleManager.BaseModule):
reason = "" if not reason else " (%s)" % reason
format = "%s left %s%s" % ("%s", event["channel"].name, reason)
- minimal = format % nickname
+ minimal = format % user.nickname
normal_format = "- %s" % format
- normal = normal_format % nickname
- pretty = normal_format % self._color(nickname)
+ normal = normal_format % user.nickname
+ pretty = normal_format % self._color(user.nickname)
self._event("part", event["server"], normal, event["channel"].name,
channel=event["channel"], user=user, minimal=minimal, pretty=pretty)