Fixed an oversight.

This commit is contained in:
Jeremy Fincher 2003-09-18 10:25:20 +00:00
parent 76cb2a05d1
commit 1ad12d2fcf

View File

@ -447,8 +447,10 @@ class UsersDB(object):
if id in self._nameCache: if id in self._nameCache:
del self._nameCache[self._nameCache[id]] del self._nameCache[self._nameCache[id]]
del self._nameCache[id] del self._nameCache[id]
for hostmask in self._hostmaskCache.get(id, []): if id in self._hostmaskCache:
del self._hostmaskCache[hostmask] for hostmask in self._hostmaskCache[id]:
del self._hostmaskCache[hostmask]
del self._hostmaskCache[id]
def newUser(self): def newUser(self):
"""Allocates a new user in the database and returns it and its id.""" """Allocates a new user in the database and returns it and its id."""