diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index 46af932fbf..d960bf1cac 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -355,6 +355,8 @@ void CDiscordProto::OnCommandGuildMemberUpdated(const JSONNode &pRoot) SnowFlake guildId = ::getId(pRoot["guild_id"]); CMStringW wszUserId = pRoot["user"]["id"].as_mstring(); CMStringW wszUserNick = pRoot["nick"].as_mstring(), wszOldNick; + if (wszUserNick.IsEmpty()) + wszUserNick = pRoot["user"]["username"].as_mstring() + L"#" + pRoot["user"]["discriminator"].as_mstring(); for (int i = 0; i < arUsers.getCount(); i++) { CDiscordUser &pUser = arUsers[i]; |