Fix for bug #1030492, overriding IrcUser.auth's list with a tuple

This commit is contained in:
James Vega 2004-09-19 23:23:35 +00:00
parent b396a9f19e
commit e2bb35e02a

View File

@ -809,9 +809,11 @@ class Irc(IrcCommandDispatcher):
if u.auth:
(_, user, host) = ircutils.splitHostmask(msg.prefix)
newhostmask = ircutils.joinHostmask(msg.args[0], user, host)
for (i, (when, authmask)) in enumerate(u.auth[:]):
if ircutils.strEqual(msg.prefix, authmask):
log.info('Following identification for %s: %s -> %s',
u.name, u.auth[1], newhostmask)
u.auth = (u.auth[0], newhostmask)
u.name, authmask, newhostmask)
u.auth[i] = (u.auth[i][0], newhostmask)
ircdb.users.setUser(id, u)
def feedMsg(self, msg):