capture: do not play while asleep…

This commit is contained in:
dece 2021-07-03 01:40:17 +02:00
parent 6ba697656d
commit d47748a56a

View file

@ -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"]: