From 9be0fb369860f943bc6894f35154820fabb6edcf Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 24 Feb 2022 11:12:56 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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