From d47748a56a4716d9aa533a2f136ed26f86d54c45 Mon Sep 17 00:00:00 2001 From: dece Date: Sat, 3 Jul 2021 01:40:17 +0200 Subject: [PATCH] =?UTF-8?q?capture:=20do=20not=20play=20while=20asleep?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- edmond/plugins/capture.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edmond/plugins/capture.py b/edmond/plugins/capture.py index ebe7948..8e50129 100644 --- a/edmond/plugins/capture.py +++ b/edmond/plugins/capture.py @@ -19,6 +19,8 @@ class CapturePlugin(Plugin): self.current_thing = None def on_pubmsg(self, event): + if not self.respects_handling_conditions(): + return False if self.current_thing is not None: message = event.arguments[0] if message == self.config["capture_sentence"]: