From 0e12d6f0e054a0193a9a58d9c0a6f43f68d60426 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 25 Jun 2019 12:25:45 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Prerun.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index 615ca65..9c10910 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -32,8 +32,13 @@ def prerun(t_command_type='module'): if not trigger_command_type: return - if trigger_command not in list(botcommands.dict["commands"][trigger_command_type].keys()): - return + for comtype in [trigger_command_type, t_command_type]: + + if comtype not in list(botcommands.dict["commands"].keys()): + return + + if trigger_command not in list(botcommands.dict["commands"][comtype].keys()): + return # Argsdict Defaults argsdict_default = {}