summaryrefslogtreecommitdiff
path: root/protocols/Discord/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-05 17:24:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-05 17:24:36 +0300
commit4587927bb51e66934cc78409a05c6667e3b97daf (patch)
treed7ef9dcbfae3e4240b34ea13aa0ddd3e98e85417 /protocols/Discord/src
parent934c8f4a7acb9090b80d424b32fccd41abff9a0c (diff)
Discord: fix for missing channel user creation
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r--protocols/Discord/src/dispatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index 43b5233729..0ae576870b 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -407,7 +407,7 @@ void CDiscordProto::OnCommandMessage(const JSONNode &pRoot, bool bIsNew)
pm = new CDiscordGuildMember(userId);
pm->wszNick = pRoot["nick"].as_mstring();
if (pm->wszNick.IsEmpty())
- pm->wszNick = pRoot["user"]["username"].as_mstring() + L"#" + pRoot["user"]["discriminator"].as_mstring();
+ pm->wszNick = pRoot["author"]["username"].as_mstring() + L"#" + pRoot["author"]["discriminator"].as_mstring();
pGuild->arChatUsers.insert(pm);
debugLogA("add missing user to chat: id=%lld, nick=%S", userId, pm->wszNick.c_str());