summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-07 22:44:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-07 22:44:34 +0300
commit2f5ce75be367aebc0e0790cac148c670462e60cf (patch)
tree2bcd4135bbda12e4691b7d4b84ad4ee43a56d038 /protocols/Discord/src/main.cpp
parentf193645f4db83e94bd44dde17f89282f182c00e4 (diff)
Discord: ability to join & leave guilds on the fly
Diffstat (limited to 'protocols/Discord/src/main.cpp')
-rw-r--r--protocols/Discord/src/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Discord/src/main.cpp b/protocols/Discord/src/main.cpp
index 850d4a044e..dbf194d708 100644
--- a/protocols/Discord/src/main.cpp
+++ b/protocols/Discord/src/main.cpp
@@ -21,6 +21,12 @@ HINSTANCE g_hInstance;
int hLangpack = 0;
HWND g_hwndHeartbeat;
+IconItem g_iconList[] =
+{
+ { LPGEN("Main icon"), "main", IDI_MAIN },
+ { LPGEN("Group chats"), "groupchat", IDI_GROUPCHAT }
+};
+
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
__PLUGIN_NAME,
@@ -71,6 +77,8 @@ extern "C" int __declspec(dllexport) Load(void)
g_hwndHeartbeat = CreateWindowEx(0, L"STATIC", NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
+ Icon_Register(g_hInstance, "Discord", g_iconList, _countof(g_iconList));
+
PROTOCOLDESCRIPTOR pd = { 0 };
pd.cbSize = sizeof(pd);
pd.szName = "Discord";