diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index 4a48231..42abd23 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -125,7 +125,6 @@ class Commands(): triggers = [trigger.args[1]] first_full_trigger_str = triggers[0] - del triggers[0] if first_full_trigger_str.startswith(tuple(self.config.prefix_list)): first_trigger_type = "command" @@ -162,7 +161,11 @@ class Commands(): "trigger_time": str(trigger.time) }) - for full_trigger_str in triggers: + if not len(triggers) > 1: + return commands + + for full_trigger_str in triggers[1:]: + print(full_trigger_str) if full_trigger_str.startswith(tuple(self.config.prefix_list)): trigger_type = "command"