mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Modified how entries are added to self.revcache
This commit is contained in:
parent
fc0bbc34d2
commit
50cb2887b2
@ -297,10 +297,7 @@ class UsersDictionary(object):
|
|||||||
for (name, user) in self.dict.iteritems():
|
for (name, user) in self.dict.iteritems():
|
||||||
if user.checkHostmask(s):
|
if user.checkHostmask(s):
|
||||||
self.cache[s] = name
|
self.cache[s] = name
|
||||||
if name in self.revcache:
|
self.revcache.setdefault(name,[]).append(s)
|
||||||
self.revcache[name].append(s)
|
|
||||||
else:
|
|
||||||
self.revcache[name] = [s]
|
|
||||||
return name
|
return name
|
||||||
raise KeyError, s
|
raise KeyError, s
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user