summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/groupchat.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-13 23:05:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-13 23:05:46 +0300
commita727a5f4cb61f721cef5a6afa6c2054a06659fea (patch)
tree3f9bf1677486c0cdbe38ccfba3de72b0f4030d1e /protocols/Discord/src/groupchat.cpp
parent653fe9968498470fddda828959c26b886efecbac (diff)
Discord: displaying roles correctly
Diffstat (limited to 'protocols/Discord/src/groupchat.cpp')
-rw-r--r--protocols/Discord/src/groupchat.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/Discord/src/groupchat.cpp b/protocols/Discord/src/groupchat.cpp
index 5525f6658f..6641a4fd88 100644
--- a/protocols/Discord/src/groupchat.cpp
+++ b/protocols/Discord/src/groupchat.cpp
@@ -23,6 +23,21 @@ enum {
IDM_CHANGENICK, IDM_CHANGETOPIC, IDM_INVITE
};
+/////////////////////////////////////////////////////////////////////////////////////////
+
+void CDiscordProto::BuildStatusList(SnowFlake guildId, 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);
+ }
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
static gc_item sttLogListItems[] =
{
{ LPGENW("Change &nickname"), IDM_CHANGENICK, MENU_ITEM },