Fix command prefix parsing code in _handle_message

This commit is contained in:
Jordyn 2026-03-15 20:13:40 -05:00
commit ab19e0db91

View file

@ -378,7 +378,8 @@ class Server():
# Run CMDTHREAD # Run CMDTHREAD
threading.Thread(target = self._handle_command, args = (cmd, msg["target_channel"], )).start() threading.Thread(target = self._handle_command, args = (cmd, msg["target_channel"], )).start()
elif msg["params"][-1].startswith(self.bot_prefix):
if msg["params"][-1].startswith(self.bot_prefix):
# Get rid of the bot prefix # Get rid of the bot prefix
command = msg["params"][-1].strip(self.bot_prefix) command = msg["params"][-1].strip(self.bot_prefix)