From e7329316880c486769d260a0d0d05a9d450ea5c1 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Wed, 17 Jan 2018 09:51:27 +0100 Subject: [PATCH] Modified NickAuth to match the new WHOX --- plugins/NickAuth/plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/NickAuth/plugin.py b/plugins/NickAuth/plugin.py index 99ecd313d..214c6c7e3 100644 --- a/plugins/NickAuth/plugin.py +++ b/plugins/NickAuth/plugin.py @@ -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)