From c832c8fc1936d5eeb05e596acabb501855c2d6d5 Mon Sep 17 00:00:00 2001 From: yzhh <2596322644@qq.com> Date: Wed, 22 Dec 2021 21:09:37 +0800 Subject: [PATCH] Update message.py --- core/parser/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/parser/message.py b/core/parser/message.py index 1bf522c1..c76b7060 100644 --- a/core/parser/message.py +++ b/core/parser/message.py @@ -123,7 +123,7 @@ async def parser(msg: MessageSession): await msg.sendMessage('你没有使用该命令的权限。') continue elif not module.base: - if command_first_word not in enabled_modules_list or not sudo: # 若未开启 + if command_first_word not in enabled_modules_list and not sudo: # 若未开启 await msg.sendMessage(f'{command_first_word}模块未启用,请发送~enable {command_first_word}启用本模块。') continue elif module.required_admin: