Some networks send NICK as 'nick!user@host NICK newnick` instead of

'nick!user@host NICK :newnick' (which is RFC compliant but BitBot didn't support
it)
This commit is contained in:
jesopo 2018-10-01 16:13:08 +01:00
parent cf83c310dd
commit ee96b3310b

View file

@ -328,7 +328,7 @@ class Module(ModuleManager.BaseModule):
# someone has changed their nickname
@Utils.hook("raw.nick")
def nick(self, event):
new_nickname = event["arbitrary"]
new_nickname = event["last"]
if not event["server"].is_own_nickname(event["prefix"].nickname):
user = event["server"].get_user(event["prefix"].nickname)
old_nickname = user.nickname