/
This commit is contained in:
parent
566b5a417e
commit
7b5567b936
2 changed files with 2 additions and 2 deletions
|
@ -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"))
|
||||
|
|
|
@ -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):
|
||||
|
|
Reference in a new issue