瀏覽代碼

Disabling auto-linker.

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
27867763eb
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. +4
    -3
      earwigbot/commands/link.py

+ 4
- 3
earwigbot/commands/link.py 查看文件

@@ -30,9 +30,10 @@ class Command(BaseCommand):
name = "link" name = "link"


def check(self, data): def check(self, data):
if ((data.is_command and data.command == "link") or
(("[[" in data.msg and "]]" in data.msg) or
("{{" in data.msg and "}}" in data.msg))):
# if ((data.is_command and data.command == "link") or
# (("[[" in data.msg and "]]" in data.msg) or
# ("{{" in data.msg and "}}" in data.msg))):
if data.is_command and data.command == "link":
return True return True
return False return False




Loading…
取消
儲存