Kaynağa Gözat

Add a per-channel quiet config setting.

tags/v0.3
Ben Kurtovic 8 yıl önce
ebeveyn
işleme
cb86d66287
2 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. +1
    -0
      CHANGELOG
  2. +2
    -0
      earwigbot/managers.py

+ 1
- 0
CHANGELOG Dosyayı Görüntüle

@@ -8,6 +8,7 @@ v0.3 (unreleased):
Improved time detection and argument parsing. Newly expired reminders are now
triggered on bot startup.
- IRC > !stalk: Allow regular expressions as page titles or usernames.
- IRC: Added a per-channel quiet config setting.
- IRC: Try not to join channels before NickServ auth has completed.
- IRC: Improved detection of maximum IRC message length.
- IRC: Improved some help commands.


+ 2
- 0
earwigbot/managers.py Dosyayı Görüntüle

@@ -225,6 +225,8 @@ class CommandManager(_ResourceManager):
.. note::
The special ``rc`` hook actually passes a :class:`~.RC` object.
"""
if data.chan in self.bot.config.irc.get("quiet", []):
return
for command in self:
if hook in command.hooks and self._wrap_check(command, data):
thread = Thread(target=self._wrap_process,


Yükleniyor…
İptal
Kaydet