浏览代码

Fixup.

tags/v0.3
Ben Kurtovic 8 年前
父节点
当前提交
29d9c80274
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      earwigbot/managers.py

+ 6
- 2
earwigbot/managers.py 查看文件

@@ -225,8 +225,12 @@ class CommandManager(_ResourceManager):
.. note::
The special ``rc`` hook actually passes a :class:`~.RC` object.
"""
if data.chan in self.bot.config.irc["frontend"].get("quiet", []):
return
try:
if data.chan in self.bot.config.irc["frontend"]["quiet"]:
return
except KeyError:
pass

for command in self:
if hook in command.hooks and self._wrap_check(command, data):
thread = Thread(target=self._wrap_process,


正在加载...
取消
保存