From 7ee4c07028fe7f9058d26111121a44cd0a038d82 Mon Sep 17 00:00:00 2001 From: Swee Date: Sat, 12 Oct 2024 14:44:00 -0700 Subject: [PATCH] Update sweebot.py --- sweebot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index e875dd3..0687e97 100644 --- a/sweebot.py +++ b/sweebot.py @@ -490,6 +490,7 @@ while True: try: if len(command) > 1: if perms == "full": + abort = False flag = sbconfig.chansettings(channel) for i in command[2:]: if i == "clear": @@ -506,9 +507,12 @@ while True: flag.append(i) else: multiline(nick + ": flag name should begin with + or -", channel) + abort = True break - sbconfig.setchanconfig(channel, flag) - multiline(nick + ": Successfuly applied configuration: " + " ".join(flag), channel) + if not abort: + print(flag) + sbconfig.setchanconfig(channel, flag) + multiline(nick + ": Successfuly applied configuration: " + " ".join(flag), channel) else: irc.send_irc(channel, nick + ": Permission denied") block+=1