Let's give a nice QUIT message when we're Ctrl-C'ed.

This commit is contained in:
Jeremy Fincher 2004-08-20 05:43:27 +00:00
parent 2b4df1ffe9
commit 4fce95ed9a

View File

@ -77,9 +77,11 @@ def main():
try: try:
drivers.run() drivers.run()
except KeyboardInterrupt: except KeyboardInterrupt:
log.info('Exiting due to Ctrl-C at console.')
world.upkeep() world.upkeep()
log.info('Exiting due to Ctrl-C.') for irc in world.ircs:
break irc.queueMsg(ircmsgs.quit('Ctrl-C at console.'))
irc.die()
except SystemExit, e: except SystemExit, e:
s = str(e) s = str(e)
if s: if s: