summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-12-14 18:23:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-12-14 18:23:36 +0300
commit1885f8d2173768ae3a4bbd80b6a12dad24591fd9 (patch)
treebf8f6353f1c0d69915182d989b7714528be6f520 /protocols/Telegram/src/main.cpp
parente72ccc740bfa7c6493a56abc168eb270f76f0cba (diff)
Telegram: setting premium icon
Diffstat (limited to 'protocols/Telegram/src/main.cpp')
-rw-r--r--protocols/Telegram/src/main.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/protocols/Telegram/src/main.cpp b/protocols/Telegram/src/main.cpp
index f2fb0cd153..6af8517ab7 100644
--- a/protocols/Telegram/src/main.cpp
+++ b/protocols/Telegram/src/main.cpp
@@ -43,15 +43,10 @@ static IconItem iconList[] =
{ LPGEN("Premium user"), "premuim", IDI_PREMIUM },
};
-extern "C" int __declspec(dllexport) Load(void)
-{
- g_plugin.registerIcon("Protocols/Telegram", iconList, "tg");
- return 0;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Load()
{
+ registerIcon("Protocols/Telegram", iconList, "tg");
+
+ m_hIcon = ExtraIcon_RegisterIcolib("tg_premium", "Telegram Premium User", getIconHandle(IDI_PREMIUM));
return 0;
}