From d3c390aef6b00e0ba4f8cb3a3c6d2e4dc9512c42 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Tue, 26 Jul 2011 21:21:02 -0500 Subject: [PATCH] now fstart doesn't require the admin to actually be in the game. --- wolfgame.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index e66ffd7..780e87d 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -360,7 +360,7 @@ def fleave(cli, nick, chan, rest): def fstart(cli, nick, chan, rest): var.CAN_START_TIME = datetime.now() cli.msg(chan, "\u0002{0}\u0002 has forced the game to start.".format(nick)) - start(cli, nick, chan, rest) + start(cli, chan, chan, rest) @@ -1597,9 +1597,12 @@ def start(cli, nick, chan, rest): if var.PHASE != "join": cli.notice(nick, "Werewolf is already in play.") return - if nick not in villagers: + if nick not in villagers and nick != chan: cli.notice(nick, "You're currently not playing.") return + + if nick == chan: + chan = botconfig.CHANNEL now = datetime.now() var.GAME_START_TIME = now # Only used for the idler checker dur = int((var.CAN_START_TIME - now).total_seconds())