From e975d6a1f179484da747d826bf007b884a276ed0 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Thu, 4 Aug 2011 12:11:26 -0500 Subject: [PATCH] fixed a bug that is caused by fping being used nearly simultaneously by two users --- wolfgame.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfgame.py b/wolfgame.py index e0abc86..29f317e 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -76,6 +76,7 @@ def connect_callback(cli): prepare_stuff() var.LAST_PING = 0 # time of last ping + var.PINGING = False var.ROLES = {"person" : []} var.ORIGINAL_ROLES = {} var.DEAD_USERS = {} @@ -211,6 +212,8 @@ def pinger(cli, nick, chan, rest): return var.LAST_PING = datetime.now() + if var.PINGING: + return var.PINGING = True TO_PING = []