瀏覽代碼

Improve per-channel quieting.

tags/v0.3
Ben Kurtovic 8 年之前
父節點
當前提交
5479375ce2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      earwigbot/managers.py

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

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


Loading…
取消
儲存