Let's always run upkeep before we exit normally.

This commit is contained in:
Jeremy Fincher 2004-08-05 06:01:35 +00:00
parent 667b5ff0b7
commit 54876e45ab
2 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,7 @@ def main():
drivers.run() drivers.run()
except KeyboardInterrupt: except KeyboardInterrupt:
log.info('Exiting due to Ctrl-C.') log.info('Exiting due to Ctrl-C.')
world.upkeep()
break break
except SystemExit, e: except SystemExit, e:
s = str(e) s = str(e)

View File

@ -464,6 +464,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
Exits the bot. Exits the bot.
""" """
world.upkeep()
world.ircs[:] = [] world.ircs[:] = []
def flush(self, irc, msg, args): def flush(self, irc, msg, args):