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:
parent
cf83c310dd
commit
ee96b3310b
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
# someone has changed their nickname
|
# someone has changed their nickname
|
||||||
@Utils.hook("raw.nick")
|
@Utils.hook("raw.nick")
|
||||||
def nick(self, event):
|
def nick(self, event):
|
||||||
new_nickname = event["arbitrary"]
|
new_nickname = event["last"]
|
||||||
if not event["server"].is_own_nickname(event["prefix"].nickname):
|
if not event["server"].is_own_nickname(event["prefix"].nickname):
|
||||||
user = event["server"].get_user(event["prefix"].nickname)
|
user = event["server"].get_user(event["prefix"].nickname)
|
||||||
old_nickname = user.nickname
|
old_nickname = user.nickname
|
||||||
|
|
Loading…
Reference in a new issue