summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/dispatch.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-13 12:49:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-13 12:49:56 +0300
commit7ce0cbd1578ef39496f1eacb5d04186695b1e2a6 (patch)
treef719e0d8d4f049cbcca10c2bd03b6a08d9d19fb3 /protocols/Discord/src/dispatch.cpp
parent653ab55904ef5e7c17eb3efa459136578d3a6859 (diff)
fixes #2209 (Discord: missing API for guilds and chats)
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r--protocols/Discord/src/dispatch.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index a7276722c0..801bdd396c 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -239,9 +239,7 @@ void CDiscordProto::OnCommandFriendRemoved(const JSONNode &pRoot)
void CDiscordProto::OnCommandGuildCreated(const JSONNode &pRoot)
{
- auto *pGuild = ProcessGuild(pRoot);
- if (pGuild != nullptr)
- ParseGuildContents(pGuild, pRoot);
+ ProcessGuild(pRoot);
}
void CDiscordProto::OnCommandGuildDeleted(const JSONNode &pRoot)