chghost events no longer have 'username'/'hostname' kwargs
This commit is contained in:
parent
fc83d4fe50
commit
5bbae499d1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue