Woohoo, fixed the bug with register in tests!

This commit is contained in:
Jeremy Fincher 2004-02-13 09:01:21 +00:00
parent 74300bb148
commit 1a62fed0b6

View File

@ -520,9 +520,11 @@ class UsersDictionary(utils.IterableMap):
def reload(self): def reload(self):
"""Reloads the database from its file.""" """Reloads the database from its file."""
self.nextId = 0
self.users.clear()
self._nameCache.clear()
self._hostmaskCache.clear()
if self.filename is not None: if self.filename is not None:
self.nextId = 0
self.users.clear()
try: try:
self.open(self.filename) self.open(self.filename)
except EnvironmentError, e: except EnvironmentError, e: