From 419572c891c0cdcdc805249ebdf4c5ef16e6f3ac Mon Sep 17 00:00:00 2001 From: jcao219 Date: Thu, 28 Jul 2011 15:22:01 -0500 Subject: [PATCH] case insensitive !force --- wolfgame.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wolfgame.py b/wolfgame.py index ad596bb..31348db 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -2001,9 +2001,12 @@ if botconfig.DEBUG_MODE: cli.msg(chan, "That won't work.") return if not is_fake_nick(who): - if who not in var.USERS: + pll = [pl.lower() for pl in var.USERS] + if who.lower() not in pll: cli.msg(chan, "This can only be done on fake nicks.") return + else: + who = var.USERS[pll.index(who.lower())] cmd = rst.pop(0).lower().replace(botconfig.CMD_CHAR, "", 1) if cmd in PM_COMMANDS.keys() and not PM_COMMANDS[cmd][0].owner_only: for fn in PM_COMMANDS[cmd]: