mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Fix for bug #1030492, overriding IrcUser.auth's list with a tuple
This commit is contained in:
parent
b396a9f19e
commit
e2bb35e02a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user