diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index 28461f6..763f6e4 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -91,7 +91,6 @@ class BotPrerun(): return prerun_split def trigger_runstatus(self, bot, trigger): - return True # Bots can't run commands if Identifier(trigger.nick) == bot.nick: @@ -105,6 +104,9 @@ class BotPrerun(): bot.osd("The admin switch (-a) is for use by authorized nicks ONLY.", 'notice') return False + if trigger.sb["hyphen_arg"]: + return False + # don't run commands that are disabled in channels if not trigger.is_privmsg: commandused = trigger.sb["realcom"]