From b5eea0a8a1a8c6e23b5d53549a8f830da5c9365e Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 24 Feb 2014 10:48:47 +0100 Subject: [PATCH] Actually disable rate limit, as setting it to 0 doesn't work --- modules/wolfgame.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 35713dd..1e74e6e 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -3002,11 +3002,11 @@ def game_stats_pm(cli, nick, rest): @cmd("playerstats", "pstats", "player", "p") def player_stats(cli, nick, chan, rest): """Gets the stats for the given player and role or a list of role totals if no role is given.""" - if (chan != nick and var.LAST_PSTATS and - var.LAST_PSTATS + timedelta(seconds=var.PSTATS_RATE_LIMIT) > datetime.now()): - cli.notice(nick, ("This command is rate-limited. " + - "Please wait a while before using it again.")) - return + #if (chan != nick and var.LAST_PSTATS and + # var.LAST_PSTATS + timedelta(seconds=var.PSTATS_RATE_LIMIT) > datetime.now()): + # cli.notice(nick, ("This command is rate-limited. " + + # "Please wait a while before using it again.")) + # return if chan != nick: var.LAST_PSTATS = datetime.now()