mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
supybot: also expand substitutes when exiting on Ctrl-C
This commit is contained in:
parent
b243c83e41
commit
0c85c6d796
@ -69,6 +69,7 @@ import supybot.i18n as i18n
|
|||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
import supybot.questions as questions
|
import supybot.questions as questions
|
||||||
|
import supybot.ircutils as ircutils
|
||||||
|
|
||||||
from supybot.version import version
|
from supybot.version import version
|
||||||
|
|
||||||
@ -104,6 +105,8 @@ def main():
|
|||||||
for irc in world.ircs:
|
for irc in world.ircs:
|
||||||
quitmsg = conf.supybot.plugins.Owner.quitMsg() or \
|
quitmsg = conf.supybot.plugins.Owner.quitMsg() or \
|
||||||
'Ctrl-C at console.'
|
'Ctrl-C at console.'
|
||||||
|
msg = ircmsgs.ping('Ctrl-C at console.')
|
||||||
|
quitmsg = ircutils.standardSubstitute(irc, msg, quitmsg)
|
||||||
irc.queueMsg(ircmsgs.quit(quitmsg))
|
irc.queueMsg(ircmsgs.quit(quitmsg))
|
||||||
irc.die()
|
irc.die()
|
||||||
except SystemExit as e:
|
except SystemExit as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user