瀏覽代碼

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"

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 False



Loading…
取消
儲存