From 943e62fc31354135e364c01bc689deb6c489050f Mon Sep 17 00:00:00 2001 From: dece Date: Sun, 8 Nov 2020 16:07:54 +0100 Subject: [PATCH] plugin: check handling conditions for simple msgs --- edmond/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/edmond/plugin.py b/edmond/plugin.py index 56f226d..7513aec 100644 --- a/edmond/plugin.py +++ b/edmond/plugin.py @@ -135,6 +135,10 @@ class Plugin: num_parts = len(first_word_and_rest) if num_parts == 0: return None + # Are the config conditions to answer a question valid? + elif not self.__respects_handling_conditions(): + return False + # Is the message addressed to me? elif first_word_and_rest[0] in self.bot.names: if num_parts == 1: return ""