diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 36d694c..3a2047e 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -17,17 +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: + if not comrun.is_rulematch: sb.commands.dispatch(comrun.command) - elif comrun.is_rulematch: - if comrun.has_command_been_sanitized: - 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:]: 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) + elif comrun.is_rulematch and comrun.has_command_been_sanitized: + sb.commands.dispatch(trigger_dict) return # If the original trigger is not the same after splits