From 33efb9401340b5e08611e19c1e0c9922e9d41e7c Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Sun, 6 Aug 2023 14:42:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8cmdpriv=E6=97=B6?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/cmds/aamgr.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/qqbot/cmds/aamgr.py b/pkg/qqbot/cmds/aamgr.py index 2f535102..cfc95b5a 100644 --- a/pkg/qqbot/cmds/aamgr.py +++ b/pkg/qqbot/cmds/aamgr.py @@ -327,6 +327,10 @@ def apply_privileges(): for path, priv in data.items(): if path == 'comment': continue + + if path not in __command_list__: + continue + if __command_list__[path]['privilege'] != priv: logging.debug('应用权限: {} -> {}(default: {})'.format(path, priv, __command_list__[path]['privilege']))