🐛 修复群组中帮助功能状态显示问题 (#1650)

This commit is contained in:
HibiKier
2024-09-25 18:29:01 +08:00
committed by GitHub
parent 207f947a1c
commit 6be9e477b1
3 changed files with 15 additions and 12 deletions
+5 -6
View File
@@ -28,13 +28,12 @@ def __handle_item(plugin: PluginInfo, group: GroupConsole | None):
if not plugin.status:
if plugin.block_type == BlockType.ALL:
plugin.name = f"{plugin.name}(不可用)"
elif (
group
and plugin.block_type == BlockType.GROUP
or not group
and plugin.block_type == BlockType.PRIVATE
):
elif group and plugin.block_type == BlockType.GROUP:
plugin.name = f"{plugin.name}(不可用)"
elif not group and plugin.block_type == BlockType.PRIVATE:
plugin.name = f"{plugin.name}(不可用)"
elif group and f"{plugin.module}," in group.block_plugin:
plugin.name = f"{plugin.name}(不可用)"
return Item(plugin_name=f"{plugin.id}-{plugin.name}")