From ebdf34256e7249f19284e74b7ed3b780511900b2 Mon Sep 17 00:00:00 2001 From: lukeroge Date: Thu, 29 Mar 2012 10:48:59 +1300 Subject: [PATCH] Bug fixes --- plugins/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/admin.py b/plugins/admin.py index c148455..6251510 100755 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -38,7 +38,7 @@ def restart(inp, nick=None, conn=None): else: conn.cmd("QUIT", ["Restarted by %s." % nick]) time.sleep(5) - subprocess.call(["./cloudbot", "restart"]) + os.execl("./cloudbot", "restart") @hook.command(autohelp=False, adminonly=True)