From 55d56a888eb7228a07cc0dd1b0025ccc3f8d73e9 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 16 Apr 2017 23:41:01 -0700 Subject: [PATCH] Restart: mark as broken on daemonized instances --- Restart/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Restart/plugin.py b/Restart/plugin.py index 5f5b8b5..5784e2f 100644 --- a/Restart/plugin.py +++ b/Restart/plugin.py @@ -29,6 +29,7 @@ ### import supybot.utils as utils +import supybot.conf as conf from supybot.commands import * import supybot.plugins as plugins 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 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) self.log.info('Restart: Attempting to restart Limnoria.') # Reuse the 'quit' command of the Owner plugin.