mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix: 群友未设置群昵称时无法在服务器显示名称
先判断是否有群昵称,然后再设置
This commit is contained in:
parent
644014e42f
commit
9ae3bc4d0d
1 changed files with 2 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ def handle_qq_json(msg):
|
||||||
if (qq_json["sub_type"] != "normal"):return
|
if (qq_json["sub_type"] != "normal"):return
|
||||||
if (qq_json["group_id"] != GROUP_ID):return
|
if (qq_json["group_id"] != GROUP_ID):return
|
||||||
|
|
||||||
sender = qq_json["sender"]["nickname"]
|
sender = qq_json["sender"]["card"]
|
||||||
|
if (sender == ""): sender = qq_json["sender"]["nickname"]
|
||||||
result = ""
|
result = ""
|
||||||
"""
|
"""
|
||||||
Message example:
|
Message example:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue