浏览代码

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:


正在加载...
取消
保存