aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-14 13:17:22 +0000
committerGravatar jesopo2019-11-14 13:17:22 +0000
commite17e4395308cb9cd25d1a53caa122c094fbd06ba (patch)
tree00195268560ef08314224c77b84f0aabfc2e0680 /modules
parent`nickname` doesn't exist in _on_part, should be user.nickname (diff)
signature
`nickname` doesn't exist in `_on_chghost`
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 48877d45..844690cf 100644
--- a/modules/format_activity.py
+++ b/modules/format_activity.py
@@ -113,11 +113,11 @@ class Module(ModuleManager.BaseModule):
def _on_chghost(self, event):
format = "%s changed host to %s@%s" % ("%s", event["username"],
event["hostname"])
- minimal = format % nickname
+ minimal = format % event["user"].nickname
normal_format = "- %s" % format
- normal = normal_format % nickname
- pretty = normal_format % self._color(nickname)
+ normal = normal_format % event["user"].nickname
+ pretty = normal_format % self._color(event["user"].nickname)
self._event("chghost", event["server"], normal, None,
user=event["user"], minimal=minimal, pretty=pretty)