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)