Pārlūkot izejas kodu

Disabling auto-linker.

tags/v0.1^2
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
27867763eb
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. +4
    -3
      earwigbot/commands/link.py

+ 4
- 3
earwigbot/commands/link.py Parādīt failu

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



Notiek ielāde…
Atcelt
Saglabāt