diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index d2f5dab..5d00467 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -19,8 +19,10 @@ def prerun(): if comrun.is_multi_command: if not comrun.is_rulematch: sb.commands.dispatch(comrun.command) - elif comrun.is_rulematch and comrun.has_command_been_sanitized and not comrun.is_real_command: - sb.commands.dispatch(comrun.command) + elif comrun.is_rulematch: + if comrun.is_real_command: + if comrun.has_command_been_sanitized: + sb.commands.dispatch(comrun.command) for trigger_dict in comrun.commands[1:]: sb.commands.dispatch(trigger_dict) return