mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-06 02:59:22 +01:00
ircdb: Fix 'IrcUser.nicks' on non-lowercase network names
This dict was filled with IrcString keys, which is hashed as lowercase, so when queried with a non-lowercase string, the key would not be found, and lead to very confusing errors.
This commit is contained in:
parent
04facade82
commit
d91303271d
@ -218,7 +218,8 @@ class IrcUser(object):
|
||||
else:
|
||||
self.hostmasks = hostmasks
|
||||
if nicks is None:
|
||||
self.nicks = {} # {'network1': ['foo', 'bar'], 'network': ['baz']}
|
||||
# {'network1': ['foo', 'bar'], 'network': ['baz']}
|
||||
self.nicks = ircutils.IrcDict()
|
||||
else:
|
||||
self.nicks = nicks
|
||||
self.gpgkeys = [] # GPG key ids
|
||||
|
Loading…
Reference in New Issue
Block a user