⚡️ 修复私聊ban后群组中回复不正确

This commit is contained in:
HibiKier
2024-08-06 21:08:31 +08:00
parent 278a5319a4
commit 50d8059e9f
3 changed files with 8 additions and 4 deletions
@@ -206,9 +206,9 @@ class AuthChecker:
if not group_id:
group_id = channel_id
channel_id = None
if user_id and matcher.plugin and (module := matcher.plugin.name):
if user_id and matcher.plugin and (module_path := matcher.plugin.module_name):
user = await UserConsole.get_user(user_id, session.platform)
if plugin := await PluginInfo.get_or_none(module=module):
if plugin := await PluginInfo.get_or_none(module_path=module_path):
if plugin.plugin_type == PluginType.HIDDEN:
return
try: