Forgot to re-add the user/channel databases to the flushers.

This commit is contained in:
Jeremy Fincher 2004-02-03 04:10:22 +00:00
parent 1232cc06c8
commit 40e3c861c0

View File

@ -514,7 +514,7 @@ class UsersDictionary(utils.IterableMap):
def reload(self): def reload(self):
"""Reloads the database from its file.""" """Reloads the database from its file."""
if self.filename is not None: if self.filename is not None:
self.nextId = 0 self.nextId = 1
self.users.clear() self.users.clear()
try: try:
self.open(self.filename) self.open(self.filename)
@ -713,6 +713,9 @@ try:
except EnvironmentError, e: except EnvironmentError, e:
log.warning('Couldn\'t open channel database: %s', e) log.warning('Couldn\'t open channel database: %s', e)
world.flushers.append(users.flush)
world.flushers.append(channels.flush)
### ###
# Useful functions for checking credentials. # Useful functions for checking credentials.