Modified NickAuth to match the new WHOX

This commit is contained in:
Nicolas Coevoet 2018-01-17 09:51:27 +01:00 committed by Valentin Lorentz
parent 2b030ac178
commit e732931688
1 changed files with 3 additions and 2 deletions

View File

@ -199,10 +199,11 @@ class NickAuth(callbacks.Plugin):
self._auth(irc, msg.prefix, account)
def do354(self, irc, msg):
if len(msg.args) != 6 or msg.args[1] != '1':
if len(msg.args) != 9 or msg.args[1] != '1':
return
(__, ___, ident, host, nick, account) = msg.args
# irc.nick 1 user ip host nick status account gecos
(n, t, user, ip, host, nick, status, account, gecos) = msg.args
prefix = '%s!%s@%s' % (nick, ident, host)
user = ircdb.users.getUserFromNick(irc.network, account)