forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
22679a9f86
commit
7ee4c07028
1 changed files with 6 additions and 2 deletions
|
@ -490,6 +490,7 @@ while True:
|
||||||
try:
|
try:
|
||||||
if len(command) > 1:
|
if len(command) > 1:
|
||||||
if perms == "full":
|
if perms == "full":
|
||||||
|
abort = False
|
||||||
flag = sbconfig.chansettings(channel)
|
flag = sbconfig.chansettings(channel)
|
||||||
for i in command[2:]:
|
for i in command[2:]:
|
||||||
if i == "clear":
|
if i == "clear":
|
||||||
|
@ -506,7 +507,10 @@ while True:
|
||||||
flag.append(i)
|
flag.append(i)
|
||||||
else:
|
else:
|
||||||
multiline(nick + ": flag name should begin with + or -", channel)
|
multiline(nick + ": flag name should begin with + or -", channel)
|
||||||
|
abort = True
|
||||||
break
|
break
|
||||||
|
if not abort:
|
||||||
|
print(flag)
|
||||||
sbconfig.setchanconfig(channel, flag)
|
sbconfig.setchanconfig(channel, flag)
|
||||||
multiline(nick + ": Successfuly applied configuration: " + " ".join(flag), channel)
|
multiline(nick + ": Successfuly applied configuration: " + " ".join(flag), channel)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue