✨ ban限制依赖类型插件

This commit is contained in:
HibiKier
2024-11-05 16:16:56 +08:00
committed by HibiKier
parent eca01e9d7f
commit 13ee30f706
+1 -1
View File
@@ -32,7 +32,7 @@ async def _(
if plugin := matcher.plugin:
if metadata := plugin.metadata:
extra = metadata.extra
if extra.get("plugin_type") in [PluginType.HIDDEN, PluginType.DEPENDANT]:
if extra.get("plugin_type") in [PluginType.HIDDEN]:
return
user_id = session.id1
group_id = session.id3 or session.id2