From c3240d66ac16f4560a5e46001eeae7acdfe3e5bc Mon Sep 17 00:00:00 2001 From: jcao219 Date: Sat, 23 Jul 2011 00:26:11 -0500 Subject: [PATCH] fixed another bug and also made !fjoin just !join --- wolfgame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index ba53029..b754886 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -311,7 +311,7 @@ def join(cli, nick, chan, rest): def fjoin(cli, nick, chan, rest): noticed = False if not rest.strip(): - return + join(cli, nick, chan, "") for a in re.split("\s+",rest): a = a.strip() @@ -1349,7 +1349,8 @@ def frole(cli, nick, chan, rest): cli.msg(chan, "Could not be done.") cli.msg(chan, "The target needs to be in this channel or a fake name.") return - who = var.USERS[ull.index(who.lower())] + if not is_fake_nick(who): + who = var.USERS[ull.index(who.lower())] if who == botconfig.NICK or not who: cli.msg(chan, "No.") return