Browse Source

ignore maxlag on IRC commands, because these are started explicitly by users

tags/v0.1^2
Ben Kurtovic 13 years ago
parent
commit
953527e473
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      bot/commands/afc_report.py
  2. +1
    -0
      bot/commands/afc_status.py
  3. +1
    -0
      bot/commands/rights.py

+ 1
- 0
bot/commands/afc_report.py View File

@@ -11,6 +11,7 @@ class Command(BaseCommand):


def process(self, data): def process(self, data):
self.site = wiki.get_site() self.site = wiki.get_site()
self.site._maxlag = None
self.data = data self.data = data


if not data.args: if not data.args:


+ 1
- 0
bot/commands/afc_status.py View File

@@ -27,6 +27,7 @@ class Command(BaseCommand):


def process(self, data): def process(self, data):
self.site = wiki.get_site() self.site = wiki.get_site()
self.site._maxlag = None


if data.line[1] == "JOIN": if data.line[1] == "JOIN":
notice = self.get_join_notice() notice = self.get_join_notice()


+ 1
- 0
bot/commands/rights.py View File

@@ -20,6 +20,7 @@ class Command(BaseCommand):


username = ' '.join(data.args) username = ' '.join(data.args)
site = wiki.get_site() site = wiki.get_site()
site._maxlag = None
user = site.get_user(username) user = site.get_user(username)
try: try:


Loading…
Cancel
Save