Kaynağa Gözat

Disabling auto-linker.

tags/v0.1^2
Ben Kurtovic 12 yıl önce
ebeveyn
işleme
27867763eb
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. +4
    -3
      earwigbot/commands/link.py

+ 4
- 3
earwigbot/commands/link.py Dosyayı Görüntüle

@@ -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



Yükleniyor…
İptal
Kaydet