aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core_modules/format_activity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core_modules/format_activity.py b/src/core_modules/format_activity.py
index cad74db3..95c37e19 100644
--- a/src/core_modules/format_activity.py
+++ b/src/core_modules/format_activity.py
@@ -112,8 +112,8 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.chghost")
def _on_chghost(self, event):
- username = event["username"]
- hostname = event["hostname"]
+ username = event["user"].username
+ hostname = event["user"].hostname
minimal = "{~NICK} changed host to {USER}@{HOST}"
line = "- %s" % minimal