From 5bbae499d124ba5718551ec171966c517735f4ba Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 5 Feb 2020 18:21:08 +0000 Subject: [PATCH] chghost events no longer have 'username'/'hostname' kwargs --- src/core_modules/format_activity.py | 4 ++-- 1 file 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