diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 7806b9d..af3f4be 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -20,7 +20,8 @@ def prerun(): function(bot, trigger, comrun, *args, **kwargs) - bot.say(comrun.say) + if not comrun.piped: + bot.say(comrun.say) return internal_prerun return actual_decorator diff --git a/sopel_SpiceBot_Core_Prerun/pipe_split.py b/sopel_SpiceBot_Core_Prerun/pipe_split.py index af75ad9..cc2a2fb 100644 --- a/sopel_SpiceBot_Core_Prerun/pipe_split.py +++ b/sopel_SpiceBot_Core_Prerun/pipe_split.py @@ -20,6 +20,9 @@ def pipe_split(): comrun.trigger_dict = pipes[0] del pipes[0] + if len(pipes): + comrun.piped = True + function(bot, trigger, comrun, *args, **kwargs) if len(pipes):