1
0
Fork 0
forked from swee/MeowNex

Update sweebot.py

This commit is contained in:
Swee 2024-10-12 14:44:00 -07:00
parent 22679a9f86
commit 7ee4c07028

View file

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