From f0eeb9aa754891f5cd164347780356f4122bb4f8 Mon Sep 17 00:00:00 2001 From: neersighted Date: Thu, 1 Mar 2012 13:55:32 -0800 Subject: [PATCH] oops, won't send quit message like that --- plugins/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/admin.py b/plugins/admin.py index 98f806c..903758e 100755 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -18,8 +18,8 @@ def stop(inp, input=None, db=None, notice=None): input.conn.send("QUIT :Killed by " + input.nick + " (" + inp + ")") else: input.conn.send("QUIT :Killed by " + input.nick + " (no reason)") - subprocess.call("nohup ./cloudbot stop&", shell=True) time.sleep(5) + subprocess.call("python cloudbot stop", shell=True) @hook.command(autohelp=False) @@ -32,8 +32,8 @@ def restart(inp, input=None, db=None, notice=None): input.conn.send("QUIT :Restarted by " + input.nick + " (" + inp + ")") else: input.conn.send("QUIT :Restarted by " + input.nick + " (no reason)") - subprocess.call("nohup ./cloudbot restart&", shell=True) time.sleep(5) + subprocess.call("python cloudbot restart", shell=True) @hook.command(autohelp=False) @@ -42,8 +42,8 @@ def clear(inp, input=None, db=None, notice=None): if not input.nick in input.bot.config["admins"]: notice("Only bot admins can use this command!") return - subprocess.call("nohup ./cloudbot clear&", shell=True) time.sleep(5) + subprocess.call("python ./cloudbot clear", shell=True) @hook.command