summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/groupchat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/groupchat.cpp')
-rw-r--r--protocols/Discord/src/groupchat.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/Discord/src/groupchat.cpp b/protocols/Discord/src/groupchat.cpp
index 6641a4fd88..ac9cf235d5 100644
--- a/protocols/Discord/src/groupchat.cpp
+++ b/protocols/Discord/src/groupchat.cpp
@@ -25,15 +25,12 @@ enum {
/////////////////////////////////////////////////////////////////////////////////////////
-void CDiscordProto::BuildStatusList(SnowFlake guildId, const CMStringW &wszChannelId)
+void CDiscordProto::BuildStatusList(const CDiscordGuild *pGuild, const CMStringW &wszChannelId)
{
Chat_AddGroup(m_szModuleName, wszChannelId, L"@owner");
- for (int i = 0; i < arRoles.getCount(); i++) {
- CDiscordRole &r = arRoles[i];
- if (r.guildId == guildId)
- Chat_AddGroup(m_szModuleName, wszChannelId, r.wszName);
- }
+ for (int i = 0; i < pGuild->arRoles.getCount(); i++)
+ Chat_AddGroup(m_szModuleName, wszChannelId, pGuild->arRoles[i].wszName);
}
/////////////////////////////////////////////////////////////////////////////////////////