test
This commit is contained in:
parent
2ddc6cf0e9
commit
c02dfb656d
@ -155,11 +155,8 @@ 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(function, command_type)
|
||||||
command_aliases = self.get_command_aliases
|
return ('(.*)' in command_aliases)
|
||||||
if '(.*)' in command_aliases:
|
|
||||||
rulematch = True
|
|
||||||
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":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user