From ad0dd972cb070b16d418303d2a80b5450a248401 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 26 Jul 2012 21:13:00 -0400 Subject: [PATCH] data.command, not self.command! --- earwigbot/commands/lag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/earwigbot/commands/lag.py b/earwigbot/commands/lag.py index 1e5697c..cee0ee1 100644 --- a/earwigbot/commands/lag.py +++ b/earwigbot/commands/lag.py @@ -32,10 +32,10 @@ class Lag(Command): site = self.get_site(data) if not site: return - if self.command == "replag": + if data.command == "replag": base = "\x0302{0}\x0F: {1}." msg = base.format(site.name, self.get_replag(site)) - elif self.command == "maxlag": + elif data.command == "maxlag": base = "\x0302{0}\x0F: {1}." msg = base.format(site.name, self.get_maxlag(site).capitalize()) else: