mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user