From e4ccb7d4cb7c9544bf89232fc3451582a02896dd Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 5 May 2022 13:41:00 -0400 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 8369883..6cf26b2 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -32,17 +32,16 @@ def prerun(): sb.commands.dispatch(trigger_dict) return - print(comrun.is_pipe_command) - # If the original trigger is not the same after splits # so we will now redispatch to help get the correct function passed - # if comrun.has_command_been_sanitized: - # if comrun.is_pipe_command: - # trigger_dict = rebuild_pipes(comrun.commands) - # else: - # trigger_dict = comrun.command - # sb.commands.dispatch(trigger_dict) - # return + if comrun.has_command_been_sanitized: + if comrun.is_pipe_command: + trigger_dict = rebuild_pipes(comrun.commands) + print(trigger_dict) + else: + trigger_dict = comrun.command + sb.commands.dispatch(trigger_dict) + return # Block the catch-all from running a command twice if comrun.is_catchall and comrun.is_real_command: