Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-11-19 16:27:52 +08:00 committed by GitHub
parent 566b5a417e
commit 7b5567b936
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ async def del_su(message: Bot.MessageSession):
await msg.send_message(msg.locale.t("core.message.confirm"))
confirm = await msg.wait_confirm()
if not confirm:
pass
return
if user:
if BotDBUtil.SenderInfo(user).edit('isSuperUser', False):
await message.finish(message.locale.t("success"))

View file

@ -95,7 +95,7 @@ async def config_gu(msg: Bot.MessageSession):
await msg.send_message(msg.locale.t("core.message.confirm"))
confirm = await msg.wait_confirm()
if not confirm:
pass
return
if 'add' in msg.parsed_msg:
if user and user not in msg.custom_admins:
if msg.data.add_custom_admin(user):