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[0] == "+":
|
||||||
if "-" + i[1:] in flag:
|
if "-" + i[1:] in flag:
|
||||||
flag[flag.index("-" + i[1:])] = i
|
flag[flag.index("-" + i[1:])] = i
|
||||||
|
else:
|
||||||
|
flag.append(i)
|
||||||
elif i[0] == "-":
|
elif i[0] == "-":
|
||||||
if "+" + i[1:] in flag:
|
if "+" + i[1:] in flag:
|
||||||
flag[flag.index("+" + i[1:])] = i
|
flag[flag.index("+" + i[1:])] = i
|
||||||
|
else:
|
||||||
|
flag.append(i)
|
||||||
else:
|
else:
|
||||||
multiline(nick + ": flag name should begin with + or -")
|
multiline(nick + ": flag name should begin with + or -")
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue