From edbe6535ade9854eed8e3b9893d01402d92ae177 Mon Sep 17 00:00:00 2001 From: Emanuel Barry Date: Wed, 27 May 2015 14:35:59 -0400 Subject: [PATCH] Fix !fjoin to be case-insensitive --- src/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 2058a22..245b0d5 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -1073,7 +1073,7 @@ def fjoin(cli, nick, chan, rest): continue ul = list(var.USERS.keys()) 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 noticed: # important cli.msg(chan, nick+(": You may only fjoin "+