diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 9506643..9b8b7aa 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -12,19 +12,15 @@ def prerun_command(): @functools.wraps(function) def internal_prerun(bot, trigger, *args, **kwargs): - # Get && split for multiple commands - if "&&" in trigger.args[1]: - triggers = trigger.args[1].split("&&") - else: - triggers = [trigger.args[1]] - - bot.say(str(triggers)) - trigger_command_type = str("command") # Primary command used for trigger, and a list of all words trigger_args, trigger_command, trigger_prefix = make_trigger_args(trigger.args[1], trigger_command_type) + bot.say(str(trigger_args)) + bot.say(str(trigger_command)) + bot.say(str(trigger_prefix)) + function(bot, trigger, *args, **kwargs) return internal_prerun