mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Let's give a nice QUIT message when we're Ctrl-C'ed.
This commit is contained in:
parent
2b4df1ffe9
commit
4fce95ed9a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user