From d6054779fc7bc80c8e8aee1f7a528c0f1eb8772b Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 24 May 2019 08:24:30 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Prerun.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index fe0c205..2369b52 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -48,9 +48,10 @@ class BotPrerun(): # Run the function for all splits for argsdict in argsdict_list: + trigger.sb = copy.deepcopy(argsdict) + trigger.sb["args"], trigger.sb["hyphen_arg"] = self.trigger_hyphen_args(trigger.sb["args"]) + def newfunc(bot, trigger, *args, **kwargs): - trigger.sb = copy.deepcopy(argsdict) - trigger.sb["args"], trigger.sb["hyphen_arg"] = self.trigger_hyphen_args(trigger.sb["args"]) if not trigger.sb["hyphen_arg"]: # check if anything prohibits the nick from running the command if self.trigger_runstatus(bot, trigger):