Fix !fjoin to be case-insensitive
This commit is contained in:
parent
4393f3413a
commit
edbe6535ad
@ -1073,7 +1073,7 @@ def fjoin(cli, nick, chan, rest):
|
|||||||
continue
|
continue
|
||||||
ul = list(var.USERS.keys())
|
ul = list(var.USERS.keys())
|
||||||
ull = [u.lower() for u in ul]
|
ull = [u.lower() for u in ul]
|
||||||
if tojoin.lower() not in ull or not var.USERS[tojoin]["inchan"]:
|
if tojoin.lower() not in ull or not var.USERS[ul[ull.index(tojoin.lower())]]["inchan"]:
|
||||||
if not is_fake_nick(tojoin) or not botconfig.DEBUG_MODE:
|
if not is_fake_nick(tojoin) or not botconfig.DEBUG_MODE:
|
||||||
if not noticed: # important
|
if not noticed: # important
|
||||||
cli.msg(chan, nick+(": You may only fjoin "+
|
cli.msg(chan, nick+(": You may only fjoin "+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user