From c7b17549ed7029682d9012d3d53d3e34523f699f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Feb 2017 19:49:37 +0300 Subject: Discord: - support for channel creation & destruction on the fly - code cleaning --- protocols/Discord/src/guilds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Discord/src/guilds.cpp') diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp index f14caadf06..4b89937cd6 100644 --- a/protocols/Discord/src/guilds.cpp +++ b/protocols/Discord/src/guilds.cpp @@ -96,7 +96,7 @@ CDiscordUser* CDiscordProto::ProcessGuildChannel(CDiscordGuild *pGuild, const JS { // filter our all channels but the text ones if (pch["type"].as_int() != 0) - return NULL; + return nullptr; CMStringW wszChannelName = pGuild->wszName + L"#" + pch["name"].as_mstring(); CMStringW wszChannelId = pch["id"].as_mstring(); @@ -120,7 +120,7 @@ CDiscordUser* CDiscordProto::ProcessGuildChannel(CDiscordGuild *pGuild, const JS } CDiscordUser *pUser = FindUserByChannel(channelId); - if (pUser == NULL) { + if (pUser == nullptr) { // missing channel - create it pUser = new CDiscordUser(channelId); pUser->bIsPrivate = false; -- cgit v1.2.3