diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index f179c6f..88c5f2a 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -70,14 +70,11 @@ class Commands(): def dispatch(self, bot, trigger, trigger_dict): if trigger_dict["trigger_type"] == "command": - if trigger_dict["trigger_command"] in self.valid_sopel_commands: - return self.dispatch_command(bot, trigger, trigger_dict) + return self.dispatch_command(bot, trigger, trigger_dict) elif trigger_dict["trigger_type"] == "nickname_command": - if trigger_dict["trigger_command"] in self.valid_sopel_nickname_commands: - return self.dispatch_nickname_command(bot, trigger, trigger_dict) + return self.dispatch_nickname_command(bot, trigger, trigger_dict) elif trigger_dict["trigger_type"] == "action_command": - if trigger_dict["trigger_command"] in self.valid_sopel_action_commands: - return self.dispatch_action_command(bot, trigger, trigger_dict) + return self.dispatch_action_command(bot, trigger, trigger_dict) def dispatch_command(self, bot, trigger, trigger_dict): pretrigger = PreTrigger(