From 2c795a1c41fbc5c4d9123b3e005a18edb08c138c Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 19 Sep 2019 12:00:57 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Prerun.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index f460213..1d5644f 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -505,8 +505,12 @@ def trigger_hyphen_arg_handler(bot, trigger, botcom): if not botcom.dict["hyphen_arg"]: return True + # include nonstock options here as well + elif str(botcom.dict["hyphen_arg"]).lower() in [command.lower() for command in botcom.dict["dict"]["nonstockoptions"]]: + return True + # handle numbered args - if str(botcom.dict["hyphen_arg"]).isdigit() or botcom.dict["hyphen_arg"] in [-1, 'random']: + elif str(botcom.dict["hyphen_arg"]).isdigit() or botcom.dict["hyphen_arg"] in [-1, 'random']: return True elif botcom.dict["hyphen_arg"] in ['check']: