瀏覽代碼

data.command, not self.command!

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
ad0dd972cb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      earwigbot/commands/lag.py

+ 2
- 2
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:


Loading…
取消
儲存