From 4f07cdeddc7c5020c6dde81b86966689606e9b3e Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 24 Feb 2022 11:06:15 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 2365376..6302e65 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -17,8 +17,11 @@ def prerun(): # we are going to redispatch commands # This will give sopel the appearance of recieving individual commands if comrun.is_multi_command: - print(comrun.commands) - for trigger_dict in comrun.commands: + if not comrun.is_rulematch: + sb.commands.dispatch(comrun.command) + elif comrun.is_rulematch and comrun.has_command_been_sanitized: + sb.commands.dispatch(comrun.command) + for trigger_dict in comrun.commands[1:]: sb.commands.dispatch(trigger_dict) return