mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix: 修复一些权限上的问题
This commit is contained in:
@@ -541,12 +541,14 @@ def oper_msg(message,
|
||||
sender_id = str(message.sender.tiny_id)
|
||||
else:
|
||||
sender_id = str(message.sender.user_id)
|
||||
if sender_id == admin_qq or sender_id == admin_qqchan:
|
||||
if sender_id == admin_qq or \
|
||||
sender_id == admin_qqchan or \
|
||||
sender_id in cc.get("other_admins", []) or \
|
||||
sender_id == cc.get("gocq_qqchan_admin", ""):
|
||||
# gu.log("检测到管理员身份", gu.LEVEL_INFO, tag="GOCQ")
|
||||
role = "admin"
|
||||
|
||||
if platform == PLATFORM_QQCHAN:
|
||||
|
||||
with_tag = True
|
||||
|
||||
if qq_msg == "":
|
||||
|
||||
Reference in New Issue
Block a user