From 6e3d95af8fb9a1e230633f251cb14b8be8ea7d90 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Sun, 31 Jul 2011 18:58:46 -0500 Subject: [PATCH] now you can't !ping in game --- wolfgame.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfgame.py b/wolfgame.py index 3af5fa0..c5a2746 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -235,6 +235,10 @@ def pinger(cli, nick, chan, rest): cli.notice(nick, ("This command is ratelimited. " + "Please wait a while before using it again.")) return + + if var.PHASE in ('night','day'): + cli.notice(nick, "You cannot use this command while a game is running.") + return var.LAST_PING = datetime.now() var.PINGING = True