supybot: also expand substitutes when exiting on Ctrl-C

This commit is contained in:
James Lu 2015-02-05 22:30:18 -08:00
parent b243c83e41
commit 0c85c6d796

View File

@ -69,6 +69,7 @@ import supybot.i18n as i18n
import supybot.utils as utils
import supybot.registry as registry
import supybot.questions as questions
import supybot.ircutils as ircutils
from supybot.version import version
@ -104,6 +105,8 @@ 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)
irc.queueMsg(ircmsgs.quit(quitmsg))
irc.die()
except SystemExit as e: