summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/init.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-26 07:16:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-26 07:16:41 +0000
commit9b7b378a1e13a21311718aa7fceb55982442b10d (patch)
treeca39b7fbc8b793f1058df73be4ee8af9af831653 /protocols/IcqOscarJ/init.cpp
parent7a6170b42556a9af96354cb5a94d0cdb9e2dcca7 (diff)
fix for Miranda NG detection in ICQ
git-svn-id: http://svn.miranda-ng.org/main/trunk@1187 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/init.cpp')
-rw-r--r--protocols/IcqOscarJ/init.cpp35
1 files changed, 4 insertions, 31 deletions
diff --git a/protocols/IcqOscarJ/init.cpp b/protocols/IcqOscarJ/init.cpp
index 89016553ee..2210a6fb0b 100644
--- a/protocols/IcqOscarJ/init.cpp
+++ b/protocols/IcqOscarJ/init.cpp
@@ -33,8 +33,6 @@
HINSTANCE hInst;
int hLangpack;
-DWORD MIRANDA_VERSION;
-
HANDLE hStaticServices[1];
IcqIconHandle hStaticIcons[4];
HANDLE hStaticHooks[1];;
@@ -93,37 +91,12 @@ static int OnModulesLoaded( WPARAM, LPARAM )
extern "C" int __declspec(dllexport) Load(void)
{
-
mir_getLP( &pluginInfo );
- // Get Miranda version
- MIRANDA_VERSION = (DWORD)CallService(MS_SYSTEM_GETVERSION, 0, 0);
-
- { // Are we running under unicode Miranda core ?
- char szVer[MAX_PATH];
-
- CallService(MS_SYSTEM_GETVERSIONTEXT, MAX_PATH, (LPARAM)szVer);
- _strlwr(szVer); // make sure it is lowercase
-
- if (strstrnull(szVer, "alpha") != NULL)
- { // Are we running under Alpha Core
- MIRANDA_VERSION |= 0x80000000;
- }
- else if (strstrnull(szVer, "preview") == NULL)
- { // for Final Releases of Miranda 0.5+ clear build number
- MIRANDA_VERSION &= 0xFFFFFF00;
- }
-
- // Check if _UNICODE matches Miranda's _UNICODE
- if (strstrnull(szVer, "unicode") == NULL)
- {
- char szMsg[MAX_PATH], szCaption[100];
-
- MessageBoxUtf(NULL, ICQTranslateUtfStatic("You cannot use Unicode version of ICQ Protocol plug-in with Ansi version of Miranda IM.", szMsg, MAX_PATH),
- ICQTranslateUtfStatic("ICQ Plugin", szCaption, 100), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST);
- return 1; // Failure
- }
- }
+ // Are we running under unicode Miranda core ?
+ char szVer[MAX_PATH];
+ CallService(MS_SYSTEM_GETVERSIONTEXT, MAX_PATH, (LPARAM)szVer);
+ _strlwr(szVer); // make sure it is lowercase
srand(time(NULL));
_tzset();