web-marbles
web-marbles copied to clipboard
Chat commands falsely trigger for partial matches
Expected behavior
The chat commands (e.g. !marble) only works when a user's message matches the command exactly. When additional attributes are added in the message, they are separated with whitespace from each other and the command itself.
Actual behavior
As long as the start of the message matches the command (e.g. !marblemarbleandevenmoremarble), the command is triggered.
Reproduction steps
- Go to the client page
- Type any valid chat command
- Add any text to the command without adding whitespace
- The command is triggered despite not fully matching
Additional context It's not a feature-breaking bug at the moment, although it does muddy up attribute checks for marbles and might cause conflicts with similarly named commands in the future.