summaryrefslogtreecommitdiff
path: root/ATRI/plugins/manage
diff options
context:
space:
mode:
author0w0 <[email protected]>2022-12-29 16:39:00 +0800
committerGitHub <[email protected]>2022-12-29 16:39:00 +0800
commit5e63be78aabb6feda2bf92b9db2264aac2721641 (patch)
treed90bc810150d859c76e64f6e71d8524478014f31 /ATRI/plugins/manage
parentbb13b38f862d859007d1d37941f5b5c9d5f38cbc (diff)
parentc0e5f0398bd4c3c55378cff303f31ff968822346 (diff)
downloadATRI-5e63be78aabb6feda2bf92b9db2264aac2721641.tar.gz
ATRI-5e63be78aabb6feda2bf92b9db2264aac2721641.tar.bz2
ATRI-5e63be78aabb6feda2bf92b9db2264aac2721641.zip
🔀 Merge pull request #66 from yangrq1018/main
Feature add + bug fix
Diffstat (limited to 'ATRI/plugins/manage')
-rw-r--r--ATRI/plugins/manage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ATRI/plugins/manage/__init__.py b/ATRI/plugins/manage/__init__.py
index 0268ec9..03de2fe 100644
--- a/ATRI/plugins/manage/__init__.py
+++ b/ATRI/plugins/manage/__init__.py
@@ -290,6 +290,8 @@ async def _deal_approve_friend_add(
except Exception:
await approve_friend_add.finish("同意失败...尝试下手动?")
data = Manage().load_friend_apply_list()
+ if apply_code not in data:
+ await approve_friend_add.reject("申请码不存在...请检查是否输入正确")
data.pop(apply_code)
Manage().save_friend_apply_list(data)
await approve_friend_add.finish("好欸!申请已通过!")