From 5479375ce222e68de84a71c3ff2e1b3a8dd5cbbf Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 31 Jan 2016 22:05:04 -0600 Subject: [PATCH] Improve per-channel quieting. --- earwigbot/managers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/earwigbot/managers.py b/earwigbot/managers.py index 2ffb55c..1562bdd 100644 --- a/earwigbot/managers.py +++ b/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