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
1 changed files with 4 additions and 1 deletions

View File

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