From 0199f25821ac39590203a07566c969f421c175bc Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Sat, 4 Nov 2023 21:22:42 -0500 Subject: [PATCH] RAM hungry fix, and less spammy. --- ircbot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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