Browse Source

data.command, not self.command!

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
ad0dd972cb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      earwigbot/commands/lag.py

+ 2
- 2
earwigbot/commands/lag.py View File

@@ -32,10 +32,10 @@ class Lag(Command):
site = self.get_site(data) site = self.get_site(data)
if not site: if not site:
return return
if self.command == "replag":
if data.command == "replag":
base = "\x0302{0}\x0F: {1}." base = "\x0302{0}\x0F: {1}."
msg = base.format(site.name, self.get_replag(site)) msg = base.format(site.name, self.get_replag(site))
elif self.command == "maxlag":
elif data.command == "maxlag":
base = "\x0302{0}\x0F: {1}." base = "\x0302{0}\x0F: {1}."
msg = base.format(site.name, self.get_maxlag(site).capitalize()) msg = base.format(site.name, self.get_maxlag(site).capitalize())
else: else:


Loading…
Cancel
Save