diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-08 20:37:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-08 20:37:54 +0300 |
commit | 8baf3b8fd1f1e77bfa6b4a367bf82ae56a3f074e (patch) | |
tree | 57cefab7ae1aa87ea897cecc3eccdf1ff4127421 /protocols/Discord/src | |
parent | 1b514aa6ab1e009af189c804046c1ca15e9aaf92 (diff) |
fixes #1658 (Discord: if "Use subgroups for guild's channels" is disabled, Miranda create subgroups for guilds anyway)
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r-- | protocols/Discord/src/guilds.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |