mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Let's always run upkeep before we exit normally.
This commit is contained in:
parent
667b5ff0b7
commit
54876e45ab
@ -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)
|
||||||
|
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user