Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SaarChaffee opened this issue Jul 16, 2024 · 0 comments
Open

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

SaarChaffee opened this issue Jul 16, 2024 · 0 comments
Labels
bug BUG

Comments

@SaarChaffee
Copy link
Member

Describe the bug

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

Steps to reproduce

  • 创建新 bp 并打开
  • 将 help 插件移动到最外层, 也就是不放在 basic 里面
  • 给任意一个插件或者组上过滤器条件, 随便一个不满足沙盒的条件就行
  • 关掉 koishi 后重启
  • 开关 help 插件
  • 在沙盒中调用 help, 以及调用刚刚加了过滤器限制的指令, 现在可以调用这条指令 并且 help 中也出现了这条指令的帮助

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

@SaarChaffee SaarChaffee added the bug BUG label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG
Projects
None yet
Development

No branches or pull requests

1 participant