From c318ccee6cb57b88cb2f534c028d6d85495fec14 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 23 May 2019 18:16:19 -0400 Subject: [PATCH] plural still there --- sopel_modules/SpiceBot/Prerun.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index 0098a50..44ab216 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -115,10 +115,11 @@ class BotPrerun(): def hyphen_arg_handler(self, bot, trigger, argsdict): - hyphenarg = argsdict["hyphen_arg"] + if not argsdict["hyphen_arg"]: + return # Commands that cannot run via privmsg - if hyphenarg in ['enable']: + if argsdict["hyphen_arg"] in ['enable']: if not command_permissions_check(bot, trigger, ['admins', 'owner', 'OP', 'ADMIN', 'OWNER']): bot.say("I was unable to disable this command due to privilege issues.") @@ -136,7 +137,7 @@ class BotPrerun(): bot.say(argsdict["com"] + " is now enabled in " + str(trigger.sender)) return - elif hyphenarg in ['disable']: + elif argsdict["hyphen_arg"] in ['disable']: if not command_permissions_check(bot, trigger, ['admins', 'owner', 'OP', 'ADMIN', 'OWNER']): bot.say("I was unable to disable this command due to privilege issues.")