From 953527e47334793a6d5d6b24363bc9cf8f2c5f52 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 20 Aug 2011 19:17:46 -0400 Subject: [PATCH] ignore maxlag on IRC commands, because these are started explicitly by users --- bot/commands/afc_report.py | 1 + bot/commands/afc_status.py | 1 + bot/commands/rights.py | 1 + 3 files changed, 3 insertions(+) diff --git a/bot/commands/afc_report.py b/bot/commands/afc_report.py index 5375ce5..8488ac5 100644 --- a/bot/commands/afc_report.py +++ b/bot/commands/afc_report.py @@ -11,6 +11,7 @@ class Command(BaseCommand): def process(self, data): self.site = wiki.get_site() + self.site._maxlag = None self.data = data if not data.args: diff --git a/bot/commands/afc_status.py b/bot/commands/afc_status.py index d476daf..86f0f96 100644 --- a/bot/commands/afc_status.py +++ b/bot/commands/afc_status.py @@ -27,6 +27,7 @@ class Command(BaseCommand): def process(self, data): self.site = wiki.get_site() + self.site._maxlag = None if data.line[1] == "JOIN": notice = self.get_join_notice() diff --git a/bot/commands/rights.py b/bot/commands/rights.py index 94bf246..a38dfdf 100644 --- a/bot/commands/rights.py +++ b/bot/commands/rights.py @@ -20,6 +20,7 @@ class Command(BaseCommand): username = ' '.join(data.args) site = wiki.get_site() + site._maxlag = None user = site.get_user(username) try: