diff --git a/sopel_SpiceBot_Core_Prerun/rule_match.py b/sopel_SpiceBot_Core_Prerun/rule_match.py index 5d5dad0..3d1289a 100644 --- a/sopel_SpiceBot_Core_Prerun/rule_match.py +++ b/sopel_SpiceBot_Core_Prerun/rule_match.py @@ -14,13 +14,12 @@ def rule_match(): returnfunc = True if comrun.rulematch: - comrun.trigger.dict["trigger_type"] - if comrun.trigger.dict["trigger_type"] == "command": + if comrun.trigger_dict["trigger_type"] == "command": commands_list = sb.commands.valid_sopel_commands - elif comrun.trigger.dict["trigger_type"] == "nickname_command": + elif comrun.trigger_dict["trigger_type"] == "nickname_command": commands_list = sb.commands.valid_sopel_nickname_commands - elif comrun.trigger.dict["trigger_type"] == "action_command": + elif comrun.trigger_dict["trigger_type"] == "action_command": commands_list = sb.commands.valid_sopel_action_commands if comrun.trigger_dict["trigger_command"] in commands_list: