test
This commit is contained in:
parent
0166950b7a
commit
e9df0721a2
@ -149,7 +149,7 @@ class Commands():
|
||||
elif trigger_dict["trigger_type"] == "action_command":
|
||||
commands_list = self.valid_sopel_action_commands
|
||||
|
||||
return (trigger_dict["trigger_command"] in commands_list)
|
||||
return (trigger_dict["trigger_command"].lower() in [x.lower() for x in commands_list])
|
||||
|
||||
def is_catchall(self, function, command_type):
|
||||
"""Determine if function could be called with a rule match"""
|
||||
|
||||
@ -89,6 +89,7 @@ def rebuild_pipes(commands, trigger_str_add=None):
|
||||
repipe_trigger_dict["trigger_str"] += " %s" % trigger_str_add
|
||||
next_index_value = 2
|
||||
|
||||
try:
|
||||
for trigger_dict in commands[next_index_value:]:
|
||||
|
||||
if trigger_dict["trigger_type"] == "command":
|
||||
@ -109,6 +110,9 @@ def rebuild_pipes(commands, trigger_str_add=None):
|
||||
trigger_dict["trigger_command"],
|
||||
trigger_dict["trigger_str"])
|
||||
|
||||
except IndexError:
|
||||
repipe_trigger_dict = repipe_trigger_dict
|
||||
|
||||
return repipe_trigger_dict
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user