diff options
Diffstat (limited to 'protocols/Discord/src/groupchat.cpp')
-rw-r--r-- | protocols/Discord/src/groupchat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/groupchat.cpp b/protocols/Discord/src/groupchat.cpp index b2ba5f8248..1492a58800 100644 --- a/protocols/Discord/src/groupchat.cpp +++ b/protocols/Discord/src/groupchat.cpp @@ -29,8 +29,8 @@ void CDiscordProto::BuildStatusList(const CDiscordGuild *pGuild, const CMStringW { Chat_AddGroup(m_szModuleName, wszChannelId, L"@owner"); - for (int i = 0; i < pGuild->arRoles.getCount(); i++) - Chat_AddGroup(m_szModuleName, wszChannelId, pGuild->arRoles[i].wszName); + for (auto &it : pGuild->arRoles) + Chat_AddGroup(m_szModuleName, wszChannelId, it->wszName); } ///////////////////////////////////////////////////////////////////////////////////////// |