RAM hungry fix, and less spammy.

This commit is contained in:
Firepup Sixfifty 2023-11-04 21:22:42 -05:00
parent 79738e0b03
commit 0199f25821

View file

@ -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