mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 13:01:07 -05:00
Restart: mark as broken on daemonized instances
This commit is contained in:
parent
394158bea5
commit
55d56a888e
@ -29,6 +29,7 @@
|
|||||||
###
|
###
|
||||||
|
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
|
import supybot.conf as conf
|
||||||
from supybot.commands import *
|
from supybot.commands import *
|
||||||
import supybot.plugins as plugins
|
import supybot.plugins as plugins
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
@ -64,6 +65,9 @@ class Restart(callbacks.Plugin):
|
|||||||
If there is no default quitMsg set, your nick will be used. The standard
|
If there is no default quitMsg set, your nick will be used. The standard
|
||||||
substitutions ($version, $nick, etc.) are all handled appropriately.
|
substitutions ($version, $nick, etc.) are all handled appropriately.
|
||||||
"""
|
"""
|
||||||
|
if conf.daemonized: # XXX fix this
|
||||||
|
irc.error("Not supported on daemonized instances.", Raise=True)
|
||||||
|
|
||||||
atexit.register(self.restart_atexit_hook)
|
atexit.register(self.restart_atexit_hook)
|
||||||
self.log.info('Restart: Attempting to restart Limnoria.')
|
self.log.info('Restart: Attempting to restart Limnoria.')
|
||||||
# Reuse the 'quit' command of the Owner plugin.
|
# Reuse the 'quit' command of the Owner plugin.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user