mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Only clear users db if the filename is set.
This commit is contained in:
parent
bcbaa979d5
commit
3c42ce0861
@ -650,11 +650,11 @@ class UsersDictionary(utils.IterableMap):
|
||||
|
||||
def reload(self):
|
||||
"""Reloads the database from its file."""
|
||||
self.nextId = 0
|
||||
self.users.clear()
|
||||
self._nameCache.clear()
|
||||
self._hostmaskCache.clear()
|
||||
if self.filename is not None:
|
||||
self.nextId = 0
|
||||
self.users.clear()
|
||||
self._nameCache.clear()
|
||||
self._hostmaskCache.clear()
|
||||
try:
|
||||
self.open(self.filename)
|
||||
except EnvironmentError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user