chghost events no longer have 'username'/'hostname' kwargs

This commit is contained in:
jesopo 2020-02-05 18:21:08 +00:00
parent fc83d4fe50
commit 5bbae499d1

View file

@ -112,8 +112,8 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.chghost") @utils.hook("received.chghost")
def _on_chghost(self, event): def _on_chghost(self, event):
username = event["username"] username = event["user"].username
hostname = event["hostname"] hostname = event["user"].hostname
minimal = "{~NICK} changed host to {USER}@{HOST}" minimal = "{~NICK} changed host to {USER}@{HOST}"
line = "- %s" % minimal line = "- %s" % minimal