mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fixed an oversight.
This commit is contained in:
parent
76cb2a05d1
commit
1ad12d2fcf
@ -447,8 +447,10 @@ class UsersDB(object):
|
||||
if id in self._nameCache:
|
||||
del self._nameCache[self._nameCache[id]]
|
||||
del self._nameCache[id]
|
||||
for hostmask in self._hostmaskCache.get(id, []):
|
||||
del self._hostmaskCache[hostmask]
|
||||
if id in self._hostmaskCache:
|
||||
for hostmask in self._hostmaskCache[id]:
|
||||
del self._hostmaskCache[hostmask]
|
||||
del self._hostmaskCache[id]
|
||||
|
||||
def newUser(self):
|
||||
"""Allocates a new user in the database and returns it and its id."""
|
||||
|
Loading…
Reference in New Issue
Block a user