浏览代码

Merge pull request #29 from Emalee/develop

Make trout command change target yourself to himself
tags/v0.1^2
Ben Kurtovic 12 年前
父节点
当前提交
35eb23046f
共有 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" else target

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


正在加载...
取消
保存