From ec02aeda0d4ad5f964f3baeccd571bc92af67c2b Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 22 Feb 2022 13:02:41 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 3 ++- sopel_SpiceBot_Core_Prerun/pipe_split.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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):