From c02dfb656d61b3e25c04bfd734a8379e2afb4f56 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 24 Feb 2022 14:50:12 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_1/SBCore/commands/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index cc98449..65634fd 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -155,11 +155,8 @@ class Commands(): def is_catchall(self, function, command_type): """Determine if function could be called with a rule match""" - rulematch = False - command_aliases = self.get_command_aliases - if '(.*)' in command_aliases: - rulematch = True - return rulematch + command_aliases = self.get_command_aliases(function, command_type) + return ('(.*)' in command_aliases) def get_command_aliases(self, function, command_type): if command_type == "command":