diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index f7baf4b..fa0b232 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -272,7 +272,6 @@ class Commands(): else: trigger_command = full_trigger_str.split(" ")[0] trigger_str = " ".join([x.strip() for x in full_trigger_str.split(" ")[1:]]) - print("[%s]" % trigger_str) command_types = ["command", "nickname_command", "action_command"] # Assume same command type until proven otherwise @@ -308,7 +307,8 @@ class Commands(): trigger_type = assumed_trigger_type trigger_prefix = assumed_trigger_prefix - if not full_trigger_str.isspace() and full_trigger_str not in ['', None]: + if (not full_trigger_str.isspace() and full_trigger_str not in ['', None] + and not trigger_command.isspace() and trigger_command not in ['', None]): commands.append({ "trigger_type": trigger_type,