koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.53k stars 246 forks source link

Bug: 4.17.9 中 help 插件可以让指令突破过滤器限制 #1426

Open SaarChaffee opened 4 months ago

SaarChaffee commented 4 months ago

Describe the bug

某个或者某组插件设置了过滤器条件,在开关 help 后,即使不满足过滤器的条件也能调用这个或这组指令。

Steps to reproduce

Expected behavior

正常情况下调用不满足过滤器的指令是没反应且 help 中不会出现这条指令的帮助

Screenshots

QQ_1721115870128

QQ_1721115880355

image

Versions

System: OS: Windows 10 10.0.19045 CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz

Binaries: Node: 20.15.0 Yarn: 4.1.1

Koishi: Core: 4.17.9 Console: 5.29.2

Additional context

另外在我的生产环境中, help 在最外面且有插件和分组设有过滤器, 不用开关 help 也触发了这个 bug, 在本地开发环境没有复现这个现象

另附生产环境: System: OS: Linux 5.4 Alpine Linux CPU: (1) x64 Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz

Binaries: Node: 20.12.2 Yarn: 1.22.19

Koishi: Core: 4.17.9 Console: 5.29.2