This commit is contained in:
deathbybandaid 2022-02-24 14:47:05 -05:00
parent d18c0b74c6
commit 2ddc6cf0e9

View File

@ -155,10 +155,11 @@ class Commands():
def is_catchall(self, function, command_type): def is_catchall(self, function, command_type):
"""Determine if function could be called with a rule match""" """Determine if function could be called with a rule match"""
rulematch = False
command_aliases = self.get_command_aliases command_aliases = self.get_command_aliases
if '(.*)' in command_aliases: if '(.*)' in command_aliases:
return True rulematch = True
return False return rulematch
def get_command_aliases(self, function, command_type): def get_command_aliases(self, function, command_type):
if command_type == "command": if command_type == "command":