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:
drivers.run()
except KeyboardInterrupt:
log.info('Exiting due to Ctrl-C at console.')
world.upkeep()
log.info('Exiting due to Ctrl-C.')
break
for irc in world.ircs:
irc.queueMsg(ircmsgs.quit('Ctrl-C at console.'))
irc.die()
except SystemExit, e:
s = str(e)
if s: