From 5e050dc012ecab49bfb72d9ccbc13a4d3b40fead Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 24 Feb 2022 11:42:17 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index b406353..36d694c 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -17,20 +17,17 @@ def prerun(): # we are going to redispatch commands # This will give sopel the appearance of recieving individual commands if comrun.is_multi_command: - bot.say("multi") if not comrun.is_rulematch: - bot.say("not rule match") sb.commands.dispatch(comrun.command) elif comrun.is_rulematch: - bot.say("is rule match") if comrun.has_command_been_sanitized: - bot.say("sanitized") sb.commands.dispatch(comrun.command) - else: - bot.say("not sanitized") for trigger_dict in comrun.commands[1:]: - bot.say(str(trigger_dict)) - sb.commands.dispatch(trigger_dict) + if not comrun.is_rulematch: + sb.commands.dispatch(trigger_dict) + elif comrun.is_rulematch: + if not sb.commands.is_real_command(trigger_dict): + sb.commands.dispatch(trigger_dict) return # If the original trigger is not the same after splits