From 8baf3b8fd1f1e77bfa6b4a367bf82ae56a3f074e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 8 Dec 2018 20:37:54 +0300 Subject: fixes #1658 (Discord: if "Use subgroups for guild's channels" is disabled, Miranda create subgroups for guilds anyway) --- protocols/Discord/src/guilds.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Discord/src') diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp index 232d18d6bd..dee2659e70 100644 --- a/protocols/Discord/src/guilds.cpp +++ b/protocols/Discord/src/guilds.cpp @@ -134,7 +134,8 @@ void CDiscordProto::ProcessGuild(const JSONNode &p) pGuild->ownerId = ::getId(p["owner_id"]); pGuild->wszName = p["name"].as_mstring(); - pGuild->groupId = Clist_GroupCreate(Clist_GroupExists(m_wszDefaultGroup), pGuild->wszName); + if (m_bUseGuildGroups) + pGuild->groupId = Clist_GroupCreate(Clist_GroupExists(m_wszDefaultGroup), pGuild->wszName); SESSION_INFO *si = Chat_NewSession(GCW_SERVER, m_szModuleName, pGuild->wszName, pGuild->wszName, pGuild); pGuild->pParentSi = (SESSION_INFO*)si; -- cgit v1.2.3