mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-15 15:09:23 +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():
|
||||
if user.checkHostmask(s):
|
||||
self.cache[s] = name
|
||||
if name in self.revcache:
|
||||
self.revcache[name].append(s)
|
||||
else:
|
||||
self.revcache[name] = [s]
|
||||
self.revcache.setdefault(name,[]).append(s)
|
||||
return name
|
||||
raise KeyError, s
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user