瀏覽代碼

Be smarter about figuring out when someone is talking to us.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
c0de766f76
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      earwigbot/irc/data.py

+ 1
- 1
earwigbot/irc/data.py 查看文件

@@ -84,7 +84,7 @@ class Data(object):
self._is_command = True
self._trigger = self.command[0]
self._command = self.command[1:] # Strip the "!" or "."
elif self.command.startswith(self.my_nick):
elif re.match(r"{0}\W*?$".format(self.my_nick), self.command, re.U):
# e.g. "EarwigBot, command arg1 arg2"
self._is_command = True
self._trigger = self.my_nick


Loading…
取消
儲存