Переглянути джерело

make trout command change target yourself to himself

tags/v0.1^2
Emalee 12 роки тому
джерело
коміт
377cce1703
1 змінених файлів з 2 додано та 0 видалено
  1. +2
    -0
      earwigbot/commands/trout.py

+ 2
- 0
earwigbot/commands/trout.py Переглянути файл

@@ -38,6 +38,8 @@ class Trout(Command):
def process(self, data):
animal = data.command
target = " ".join(data.args) or data.nick
target = "himself" if target == "yourself"

normal = normalize("NFKD", target.decode("utf8")).lower()
if normal in self.exceptions:
self.reply(data, self.exceptions[normal])


Завантаження…
Відмінити
Зберегти