capture: do not play while asleep…
This commit is contained in:
parent
6ba697656d
commit
d47748a56a
|
@ -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"]:
|
||||
|
|
Loading…
Reference in a new issue