Modified how entries are added to self.revcache

This commit is contained in:
James Vega 2003-03-31 02:53:07 +00:00
parent fc0bbc34d2
commit 50cb2887b2

View File

@ -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