scripts/supybot: use None as msg for standardSubstitute on Ctrl-C

This commit is contained in:
James Lu 2015-02-07 10:01:47 -08:00
parent 32de4e8270
commit 59b39ea45e

View File

@ -105,8 +105,7 @@ def main():
for irc in world.ircs:
quitmsg = conf.supybot.plugins.Owner.quitMsg() or \
'Ctrl-C at console.'
msg = ircmsgs.ping('Ctrl-C at console.')
quitmsg = ircutils.standardSubstitute(irc, msg, quitmsg)
quitmsg = ircutils.standardSubstitute(irc, None, quitmsg)
irc.queueMsg(ircmsgs.quit(quitmsg))
irc.die()
except SystemExit as e: