diff --git a/ircbot.py b/ircbot.py index 386a5c2..4c4600e 100644 --- a/ircbot.py +++ b/ircbot.py @@ -416,11 +416,8 @@ def main(): mfind(message, [f"reboot {rebt}", f"reboot {gblrebt}"], False) and name.lower() in adminnames ): - for i in channels: - sendmsg("Rebooting...", i) send("QUIT :Rebooting\n") - __import__("os").system(f"python3 -u ircbot.py {server}") - exit("Inner layer exited or crashed") + exit("Reboot") elif ( name.lower() in adminnames and message.rstrip().lower() == exitcode