summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-06 20:30:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-06 20:30:18 +0300
commite56bbe53cd07402970fc9015a832566f85cd890b (patch)
treeff637cf110a53cfed992d715bd1531e155be249e /protocols/JabberG/src/jabber.cpp
parent0a289dfb53afd6f0c70b980b730e2f411f84a1f4 (diff)
Jabber:
- MessageState support; - minor code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp
index 24bada0460..80aceb2c5b 100755
--- a/protocols/JabberG/src/jabber.cpp
+++ b/protocols/JabberG/src/jabber.cpp
@@ -52,8 +52,6 @@ HANDLE hExtListInit, hDiscoInfoResult;
void JabberUserInfoInit(void);
void JabberUserInfoUninit(void);
-bool bSecureIM, bMirOTR, bNewGPG, bPlatform;
-
/////////////////////////////////////////////////////////////////////////////////////////
static PLUGININFOEX pluginInfoEx = {
@@ -94,9 +92,10 @@ static INT_PTR g_SvcParseXmppUri(WPARAM w, LPARAM l)
static int OnLoadModule(WPARAM, LPARAM)
{
- bSecureIM = ServiceExists("SecureIM/IsContactSecured") != 0;
- bMirOTR = GetModuleHandle(L"mirotr.dll") != nullptr;
- bNewGPG = GetModuleHandle(L"new_gpg.dll") != nullptr;
+ g_plugin.bMessageState = ServiceExists(MS_MESSAGESTATE_UPDATE);
+ g_plugin.bSecureIM = ServiceExists("SecureIM/IsContactSecured") != 0;
+ g_plugin.bMirOTR = GetModuleHandle(L"mirotr.dll") != nullptr;
+ g_plugin.bNewGPG = GetModuleHandle(L"new_gpg.dll") != nullptr;
return 0;
}
@@ -155,9 +154,9 @@ static int OnModulesLoaded(WPARAM, LPARAM)
int CMPlugin::Load()
{
#ifdef _WIN64
- bPlatform = 1;
+ bPlatform = true;
#else
- bPlatform = 0;
+ bPlatform = false;
#endif
Miranda_GetVersionText(szCoreVersion, _countof(szCoreVersion));