forked from swee/MeowNex
fix config command
This commit is contained in:
parent
4922497637
commit
56e37d5f67
1 changed files with 4 additions and 0 deletions
|
@ -498,9 +498,13 @@ while True:
|
|||
if i[0] == "+":
|
||||
if "-" + i[1:] in flag:
|
||||
flag[flag.index("-" + i[1:])] = i
|
||||
else:
|
||||
flag.append(i)
|
||||
elif i[0] == "-":
|
||||
if "+" + i[1:] in flag:
|
||||
flag[flag.index("+" + i[1:])] = i
|
||||
else:
|
||||
flag.append(i)
|
||||
else:
|
||||
multiline(nick + ": flag name should begin with + or -")
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue