Added supybot.plugins.Owner.quitMsg support for Ctrl-C kills.

This commit is contained in:
Jeremy Fincher 2004-10-27 07:47:45 +00:00
parent 96cb71f9fa
commit 8c4cbeb735

View File

@ -93,7 +93,9 @@ def main():
'without flushing its message queues.')
world.upkeep()
for irc in world.ircs:
irc.queueMsg(ircmsgs.quit('Ctrl-C at console.'))
quitmsg = conf.supybot.plugins.Owner.quitMsg() or \
'Ctrl-C at console.'
irc.queueMsg(ircmsgs.quit(quitmsg))
irc.die()
except SystemExit, e:
s = str(e)