mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +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:
|
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."""
|
||||||
|
Loading…
Reference in New Issue
Block a user