Files
AstrBot/tests/unit
Niansia 900a700b32 fix: match command group names as whole words (#10372)
* fix: match command group names as whole words

CommandGroupFilter matched messages with a plain str.startswith, so a
group named "math" also matched "mathematics". Once the group was
restricted to admins, non-admins got the permission-denied reply for any
message that merely started with the group name, such as a normal
private chat message or another plugin's command.

Match group names the same way CommandFilter does: collapse whitespace,
then require an exact match or the name followed by a space.

* fix: normalize command group equality whitespace
2026-10-06 13:32:02 +08:00
..