summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-05 20:02:16 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-05 20:02:16 +0000
commit9e97d362c526ddcf8c6ee68891575a7d24918b67 (patch)
treee757afc82ff393e6394b81a17baec4dd3d7482bf
parent439a7d68a8ff7465e735749068255dfa0c4af5ad (diff)
mirVersion cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@321 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/AVS/main.cpp2
-rw-r--r--plugins/BossKeyPlus/BossKey.cpp5
-rw-r--r--plugins/Clist_nicer/SRC/init.cpp4
-rw-r--r--plugins/Db3x/init.c4
-rw-r--r--plugins/Dbx_tree/init.cpp5
-rw-r--r--plugins/FingerPrintModPlus/src/fingerprint.cpp7
-rw-r--r--plugins/FlashAvatars/cflash.cpp23
-rw-r--r--plugins/FloatingContacts/main.cpp6
-rw-r--r--plugins/FreeImage/Miranda/main.cpp2
-rw-r--r--plugins/IEView/ieview_main.cpp3
-rw-r--r--plugins/JSON/miminterface.cpp8
-rw-r--r--plugins/MetaContacts/meta_main.c4
-rw-r--r--plugins/ModernOpt/main.cpp3
-rw-r--r--plugins/Mwclist/init.c2
-rw-r--r--plugins/NewXstatusNotify/main.cpp3
-rw-r--r--plugins/NewsAggregator/Src/NewsAggregator.cpp5
-rw-r--r--plugins/Nudge/main.cpp5
-rw-r--r--plugins/Popup/src/main.cpp7
-rw-r--r--plugins/QuickMessages/main.c8
-rw-r--r--plugins/Quotes/Forex.cpp6
-rw-r--r--plugins/Sessions/Src/Main.cpp3
-rw-r--r--plugins/StatusPlugins/StartupStatus/main.cpp5
-rw-r--r--plugins/StopSpamPlus/src/stopspam.cpp3
-rw-r--r--plugins/Svc_dbepp/main.cpp4
-rw-r--r--plugins/YAMN/main.cpp3
-rw-r--r--plugins/ZeroNotification/main.c2
-rw-r--r--protocols/AimOscar/aim.cpp11
-rw-r--r--protocols/FacebookRM/main.cpp16
-rw-r--r--protocols/Gadu-Gadu/gg.c10
-rw-r--r--protocols/IcqOscarJ/init.cpp9
-rw-r--r--protocols/JabberG/jabber.cpp7
-rw-r--r--protocols/MRA/Mra.cpp5
-rw-r--r--protocols/MSN/msn.cpp7
-rw-r--r--protocols/Omegle/main.cpp16
-rw-r--r--protocols/Weather/weather.cpp8
-rw-r--r--protocols/Yahoo/main.cpp14
36 files changed, 9 insertions, 226 deletions
diff --git a/plugins/AVS/main.cpp b/plugins/AVS/main.cpp
index bb4ebc236f..cdd1c71b85 100644
--- a/plugins/AVS/main.cpp
+++ b/plugins/AVS/main.cpp
@@ -2486,8 +2486,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserv
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < MIRANDA_VERSION_CORE)
- return NULL;
return &pluginInfoEx;
}
diff --git a/plugins/BossKeyPlus/BossKey.cpp b/plugins/BossKeyPlus/BossKey.cpp
index e7f6226b91..4bc8b49800 100644
--- a/plugins/BossKeyPlus/BossKey.cpp
+++ b/plugins/BossKeyPlus/BossKey.cpp
@@ -87,11 +87,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,0)) {
- MessageBox( NULL, _T("The BossKey+ cannot be loaded. It requires Miranda IM 0.8 or later."), _T("BossKey+"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
- pluginInfo.cbSize = sizeof(PLUGININFOEX);
return &pluginInfo;
}
diff --git a/plugins/Clist_nicer/SRC/init.cpp b/plugins/Clist_nicer/SRC/init.cpp
index 77d5ed123e..2ba6531b13 100644
--- a/plugins/Clist_nicer/SRC/init.cpp
+++ b/plugins/Clist_nicer/SRC/init.cpp
@@ -174,10 +174,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0)) {
- MessageBox(0, _T("The installed version of the Clist Nicer+ plugin is not compatible with this Miranda installation. It requires Miranda core 0.9.0.0 or later"), _T("Clist Nicer+ error"), MB_OK);
- return NULL;
- }
return &pluginInfo;
}
diff --git a/plugins/Db3x/init.c b/plugins/Db3x/init.c
index ca574224f5..51ca5baafe 100644
--- a/plugins/Db3x/init.c
+++ b/plugins/Db3x/init.c
@@ -181,10 +181,6 @@ __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved)
__declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < MIRANDA_VERSION_CORE ) {
- MessageBox( NULL, _T("The db3x plugin cannot be loaded. It requires Miranda IM 0.7.0.0 or later."), _T("db3x Plugin"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
return &pluginInfo;
}
diff --git a/plugins/Dbx_tree/init.cpp b/plugins/Dbx_tree/init.cpp
index 0c83f8826f..8c11e04a9f 100644
--- a/plugins/Dbx_tree/init.cpp
+++ b/plugins/Dbx_tree/init.cpp
@@ -53,11 +53,6 @@ extern "C" __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * Reserve
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD MirandaVersion)
{
- if (MirandaVersion < gMinMirVer)
- {
- MessageBoxA( 0, "The dbx_tree plugin cannot be loaded. It requires Miranda IM 0.8.0.0 or later.", gInternalName, MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND | MB_TOPMOST );
- return NULL;
- }
return &gPluginInfoEx;
}
diff --git a/plugins/FingerPrintModPlus/src/fingerprint.cpp b/plugins/FingerPrintModPlus/src/fingerprint.cpp
index 8a729bad7c..79e9309cd1 100644
--- a/plugins/FingerPrintModPlus/src/fingerprint.cpp
+++ b/plugins/FingerPrintModPlus/src/fingerprint.cpp
@@ -150,12 +150,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
-{// Tell Miranda IM about plugin
- if(mirandaVersion < 0x8000)
- {
- MessageBox(NULL, TranslateT("Fingerprint Mod+ plugin requires Miranda IM 0.8.0.0 or later"), TranslateT("Fatal error"), MB_OK);
- return NULL;
- }
+{
return &pluginInfoEx;
}
diff --git a/plugins/FlashAvatars/cflash.cpp b/plugins/FlashAvatars/cflash.cpp
index 78eaf7912c..12a0f1466a 100644
--- a/plugins/FlashAvatars/cflash.cpp
+++ b/plugins/FlashAvatars/cflash.cpp
@@ -644,29 +644,6 @@ static int systemModulesLoaded(WPARAM /*wParam*/, LPARAM /*lParam*/)
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 4, 0, 0))
- return NULL;
-
- TCHAR filename[MAX_PATH];
- GetModuleFileName(g_hInst, filename, SIZEOF(filename));
-
- DWORD unused;
- DWORD verInfoSize = GetFileVersionInfoSize(filename, &unused);
- PVOID pVerInfo = malloc(verInfoSize);
- GetFileVersionInfo(filename, 0, verInfoSize, pVerInfo);
-
- TCHAR *productVersion;
- UINT blockSize;
- VerQueryValue(pVerInfo, _T("\\StringFileInfo\\040504b0\\FileVersion"), (PVOID*)&productVersion, &blockSize);
-
-#ifdef _UNICODE
- _snprintf(pluginName, SIZEOF(pluginName), "Flash avatars service [build #%S]", _tcsrchr(productVersion, ' ') + 1);
-#else
- _snprintf(pluginName, SIZEOF(pluginName), "Flash avatars service [build #%s]", strrchr(productVersion, ' ') + 1);
-#endif
- pluginInfo.shortName = pluginName;
-
- free(pVerInfo);
return &pluginInfo;
}
diff --git a/plugins/FloatingContacts/main.cpp b/plugins/FloatingContacts/main.cpp
index 187160f47d..4d10dbead5 100644
--- a/plugins/FloatingContacts/main.cpp
+++ b/plugins/FloatingContacts/main.cpp
@@ -174,10 +174,8 @@ _inline unsigned int MakeVer(int a, int b, int c, int d)
return PLUGIN_MAKE_VERSION(a, b, c, d);
}
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) {
-
- if ( mirandaVersion < MakeVer(MINIMAL_COREVERSION) ) return NULL;
- pluginInfoEx.version = MakeVer(PRODUCT_VERSION);
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+{
return &pluginInfoEx;
}
diff --git a/plugins/FreeImage/Miranda/main.cpp b/plugins/FreeImage/Miranda/main.cpp
index 8a3d538d4b..7cfad31ce8 100644
--- a/plugins/FreeImage/Miranda/main.cpp
+++ b/plugins/FreeImage/Miranda/main.cpp
@@ -1269,7 +1269,5 @@ extern "C" __declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
extern "C" __declspec(dllexport) const PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0))
- return NULL;
return &pluginInfoEx;
}
diff --git a/plugins/IEView/ieview_main.cpp b/plugins/IEView/ieview_main.cpp
index 402f6560c0..9e189373f7 100644
--- a/plugins/IEView/ieview_main.cpp
+++ b/plugins/IEView/ieview_main.cpp
@@ -55,9 +55,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvRese
extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0)) {
- return NULL;
- }
return &pluginInfoEx;
}
diff --git a/plugins/JSON/miminterface.cpp b/plugins/JSON/miminterface.cpp
index b6fbf4ce88..51260d3901 100644
--- a/plugins/JSON/miminterface.cpp
+++ b/plugins/JSON/miminterface.cpp
@@ -35,12 +35,8 @@ extern "C" {
return TRUE;
}
- __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) {
- if (mirandaVersion<PLUGIN_MAKE_VERSION( 0, 9, 0, 0 )) {
- MessageBoxA(NULL, "libJSON can only be loaded on Miranda IM 0.9.0.0 or later.", NULL, MB_OK|MB_ICONERROR|MB_SETFOREGROUND|MB_TOPMOST);
- return NULL;
- }
-
+ __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+ {
return &pluginInfo;
}
diff --git a/plugins/MetaContacts/meta_main.c b/plugins/MetaContacts/meta_main.c
index 2de31f978a..30681a211e 100644
--- a/plugins/MetaContacts/meta_main.c
+++ b/plugins/MetaContacts/meta_main.c
@@ -115,10 +115,6 @@ PLUGINLINK *pluginLink; //!< Link between Miranda and this plugin
*/
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION( 0, 8, 0, 0 )) {
- MessageBox( NULL, _T("The MetaContacts cannot be loaded. It requires Miranda IM 0.8.0.0 or later."), _T("Miranda"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
return &pluginInfo;
}
diff --git a/plugins/ModernOpt/main.cpp b/plugins/ModernOpt/main.cpp
index 5adb79cc25..e4533b6434 100644
--- a/plugins/ModernOpt/main.cpp
+++ b/plugins/ModernOpt/main.cpp
@@ -40,9 +40,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 8, 0, 0))
- return NULL;
-
return &pluginInfoEx;
}
diff --git a/plugins/Mwclist/init.c b/plugins/Mwclist/init.c
index 25eb944257..84eb9f00b0 100644
--- a/plugins/Mwclist/init.c
+++ b/plugins/Mwclist/init.c
@@ -108,8 +108,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,9) )
- return NULL;
return &pluginInfo;
}
diff --git a/plugins/NewXstatusNotify/main.cpp b/plugins/NewXstatusNotify/main.cpp
index b631bafc93..7e829fa2d5 100644
--- a/plugins/NewXstatusNotify/main.cpp
+++ b/plugins/NewXstatusNotify/main.cpp
@@ -80,9 +80,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0))
- return NULL;
-
return &pluginInfoEx;
}
diff --git a/plugins/NewsAggregator/Src/NewsAggregator.cpp b/plugins/NewsAggregator/Src/NewsAggregator.cpp
index 3d7c0e1251..716ef85d17 100644
--- a/plugins/NewsAggregator/Src/NewsAggregator.cpp
+++ b/plugins/NewsAggregator/Src/NewsAggregator.cpp
@@ -57,11 +57,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if(mirandaVersion < 0x0900)
- {
- MessageBox(NULL, TranslateT("News Aggregator plugin requires Miranda IM 0.9.0.0 or later"), TranslateT("Fatal error"), MB_OK);
- return NULL;
- }
return &pluginInfoEx;
}
diff --git a/plugins/Nudge/main.cpp b/plugins/Nudge/main.cpp
index 5af3d90205..a82a6f6dc0 100644
--- a/plugins/Nudge/main.cpp
+++ b/plugins/Nudge/main.cpp
@@ -249,11 +249,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRese
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if(mirandaVersion<PLUGIN_MAKE_VERSION(0,8,0,0))
- {
- MessageBox(NULL,_T("Nudge Plugin needs at least Miranda IM 0.8 to work correctly."),_T("Nudge Plugin"),MB_OK);
- return NULL;
- }
return &pluginInfo;
}
diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp
index ab89e61d5f..7f17238cf2 100644
--- a/plugins/Popup/src/main.cpp
+++ b/plugins/Popup/src/main.cpp
@@ -498,13 +498,6 @@ MIRAPI PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
g_popup.MirVer = mirandaVersion;
-#if defined(_UNICODE)
- pluginInfoEx.flags = UNICODE_AWARE;
-#else
- if (GetProcAddress(GetModuleHandle(_T("user32")), "DrawTextExW"))
- pluginInfoEx.flags = 1; // dynamic UNICODE_AWARE
-#endif
-
return &pluginInfoEx;
}
diff --git a/plugins/QuickMessages/main.c b/plugins/QuickMessages/main.c
index 30d22df47d..100107cceb 100644
--- a/plugins/QuickMessages/main.c
+++ b/plugins/QuickMessages/main.c
@@ -378,13 +378,9 @@ const __declspec(dllexport) MUUID* MirandaPluginInterfaces(void){
return interfaces;}
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
- {
-
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 7, 0, 0))
- return NULL;
-
+{
return &pluginInfo;
- }
+}
__declspec(dllexport)int Unload(void)
{
diff --git a/plugins/Quotes/Forex.cpp b/plugins/Quotes/Forex.cpp
index d99d2aa952..3bb25a9f99 100644
--- a/plugins/Quotes/Forex.cpp
+++ b/plugins/Quotes/Forex.cpp
@@ -435,12 +435,6 @@ extern "C"
{
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,0) )
- {
- MessageBox(NULL, TranslateT("Quotes plugin requires Miranda IM 0.8.0.0 or later"), TranslateT("Fatal error"), MB_OK);
- return NULL;
- }
-
return &Global_pluginInfo;
}
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp
index 4f0e230704..8587ae010e 100644
--- a/plugins/Sessions/Src/Main.cpp
+++ b/plugins/Sessions/Src/Main.cpp
@@ -1059,9 +1059,6 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0))
- return NULL;
-
return &pluginInfo;
}
diff --git a/plugins/StatusPlugins/StartupStatus/main.cpp b/plugins/StatusPlugins/StartupStatus/main.cpp
index b024013ce8..577c7c2799 100644
--- a/plugins/StatusPlugins/StartupStatus/main.cpp
+++ b/plugins/StatusPlugins/StartupStatus/main.cpp
@@ -69,11 +69,6 @@ PLUGININFOEX pluginInfoEx={
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION( 0, 8, 0, 0 )) {
- MessageBox(NULL, TranslateT("Startup requires Miranda IM of version 0.8, get it at www.miranda-im.org"), TranslateT("KeepStatus"), MB_OK);
- return 0;
- }
-
return &pluginInfoEx;
}
diff --git a/plugins/StopSpamPlus/src/stopspam.cpp b/plugins/StopSpamPlus/src/stopspam.cpp
index a6a6863505..beac3f3481 100644
--- a/plugins/StopSpamPlus/src/stopspam.cpp
+++ b/plugins/StopSpamPlus/src/stopspam.cpp
@@ -35,9 +35,6 @@ _inline unsigned int MakeVer(int a,int b,int c,int d)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < MakeVer(__PRODVERSION_STRING))
- return NULL;
-
return &pluginInfoEx;
}
diff --git a/plugins/Svc_dbepp/main.cpp b/plugins/Svc_dbepp/main.cpp
index be18f13e00..8412f5410e 100644
--- a/plugins/Svc_dbepp/main.cpp
+++ b/plugins/Svc_dbepp/main.cpp
@@ -41,10 +41,6 @@ PLUGININFOEX pluginInfoEx={
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 7, 0, 0)) // 0.4 better. 0.3 have too many bugs
- {
- return NULL;
- }
return &pluginInfoEx;
}
diff --git a/plugins/YAMN/main.cpp b/plugins/YAMN/main.cpp
index be537a4f26..4dfca8c9b2 100644
--- a/plugins/YAMN/main.cpp
+++ b/plugins/YAMN/main.cpp
@@ -173,9 +173,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvRe
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion >= PLUGIN_MAKE_VERSION(0, 7, 0, 3))
- bIcolibEmbededInCore = TRUE;
- pluginInfo.cbSize = sizeof(PLUGININFOEX);//Make sure cbSize is correct;
return &pluginInfo;
}
diff --git a/plugins/ZeroNotification/main.c b/plugins/ZeroNotification/main.c
index 2f278b4c01..76fa2eacf8 100644
--- a/plugins/ZeroNotification/main.c
+++ b/plugins/ZeroNotification/main.c
@@ -53,8 +53,6 @@ PLUGININFOEX pluginInfoEx = {
__declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 7, 0, 0))
- return NULL;
return &pluginInfoEx;
}
diff --git a/protocols/AimOscar/aim.cpp b/protocols/AimOscar/aim.cpp
index 9e3b1921d3..7eb6609245 100644
--- a/protocols/AimOscar/aim.cpp
+++ b/protocols/AimOscar/aim.cpp
@@ -75,17 +75,6 @@ static const PLUGININFOEX pluginInfo =
extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < MIRANDA_VERSION_CORE)
- {
- MessageBox(NULL,
- _T("The AIM protocol plugin cannot be loaded. It requires Miranda IM ")
- _T(MIRANDA_VERSION_CORE_STRING) _T(" or later."),
- _T("Miranda"), MB_OK | MB_ICONWARNING | MB_SETFOREGROUND | MB_TOPMOST);
- return NULL;
- }
-
- *(unsigned long*)(&AIM_CAP_MIRANDA[8]) = _htonl(mirandaVersion);
- *(unsigned long*)(&AIM_CAP_MIRANDA[12]) = _htonl(__VERSION_DWORD);
return &pluginInfo;
}
diff --git a/protocols/FacebookRM/main.cpp b/protocols/FacebookRM/main.cpp
index 3441b6bc98..e12bf8fac9 100644
--- a/protocols/FacebookRM/main.cpp
+++ b/protocols/FacebookRM/main.cpp
@@ -76,22 +76,6 @@ DWORD WINAPI DllMain(HINSTANCE hInstance,DWORD,LPVOID)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if(mirandaVersion > PLUGIN_MAKE_VERSION(0,10,0,0) &&
- mirandaVersion < PLUGIN_MAKE_VERSION(0,10,0,2))
- {
- MessageBox(0,_T("The Facebook protocol plugin cannot be loaded. ")
- _T("It requires Miranda IM 0.10 alpha build #2 or later."),_T("Miranda"),
- MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST);
- return NULL;
- }
- else if(mirandaVersion < PLUGIN_MAKE_VERSION(0,9,43,0))
- {
- MessageBox(0,_T("The Facebook protocol plugin cannot be loaded. ")
- _T("It requires Miranda IM 0.9.43 or later."),_T("Miranda"),
- MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST);
- return NULL;
- }
-
g_mirandaVersion = mirandaVersion;
return &pluginInfo;
}
diff --git a/protocols/Gadu-Gadu/gg.c b/protocols/Gadu-Gadu/gg.c
index a9ad33f19b..2cc361b57a 100644
--- a/protocols/Gadu-Gadu/gg.c
+++ b/protocols/Gadu-Gadu/gg.c
@@ -144,16 +144,6 @@ const char *http_error_string(int h)
// Gets plugin info
__declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < MIRANDA_VERSION_CORE)
- {
- MessageBox(
- NULL,
- "The Gadu-Gadu protocol plugin cannot be loaded. It requires Miranda IM " MIRANDA_VERSION_CORE_STRING " or later.",
- "Gadu-Gadu Protocol Plugin",
- MB_OK | MB_ICONWARNING | MB_SETFOREGROUND | MB_TOPMOST
- );
- return NULL;
- }
return &pluginInfo;
}
__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
diff --git a/protocols/IcqOscarJ/init.cpp b/protocols/IcqOscarJ/init.cpp
index d7421c6c26..44adc3efbc 100644
--- a/protocols/IcqOscarJ/init.cpp
+++ b/protocols/IcqOscarJ/init.cpp
@@ -72,15 +72,6 @@ PLUGININFOEX pluginInfo = {
extern "C" PLUGININFOEX __declspec(dllexport) *MirandaPluginInfoEx(DWORD mirandaVersion)
{
- // Only load for 0.9.0.8 or greater
- // We need the new Unicode aware Contact Search API
- if (mirandaVersion < MIRANDA_VERSION_CORE)
- {
- MessageBoxA( NULL, "ICQ plugin cannot be loaded. It requires Miranda IM " MIRANDA_VERSION_CORE_STRING " or later.", "ICQ Plugin",
- MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
-
return &pluginInfo;
}
diff --git a/protocols/JabberG/jabber.cpp b/protocols/JabberG/jabber.cpp
index 1ab12a6449..f0dc9290f2 100644
--- a/protocols/JabberG/jabber.cpp
+++ b/protocols/JabberG/jabber.cpp
@@ -114,13 +114,6 @@ extern "C" BOOL WINAPI DllMain( HINSTANCE hModule, DWORD, LPVOID )
extern "C" __declspec( dllexport ) PLUGININFOEX *MirandaPluginInfoEx( DWORD mirandaVersion )
{
- if ( mirandaVersion < MIRANDA_VERSION_CORE ) {
- MessageBoxA( NULL,
- "The Jabber protocol plugin cannot be loaded. It requires Miranda IM " MIRANDA_VERSION_CORE_STRING " or later.",
- "Jabber Protocol Plugin", MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
-
return &pluginInfo;
}
diff --git a/protocols/MRA/Mra.cpp b/protocols/MRA/Mra.cpp
index 26cdc4ffec..4bc6f56c28 100644
--- a/protocols/MRA/Mra.cpp
+++ b/protocols/MRA/Mra.cpp
@@ -54,11 +54,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstance,DWORD dwReason,LPVOID Reserved)
extern "C" MRA_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion<MIN_MIR_VER_VERSION_DWORD)
- {
- MessageBox(NULL, TranslateT("Please, update your Miranda IM, MRA will not load with this version."), NULL, (MB_OK|MB_ICONERROR));
- return(NULL);
- }
return(&pluginInfoEx);
}
diff --git a/protocols/MSN/msn.cpp b/protocols/MSN/msn.cpp
index ff5a44b627..7b70c396a4 100644
--- a/protocols/MSN/msn.cpp
+++ b/protocols/MSN/msn.cpp
@@ -165,13 +165,6 @@ extern "C" int __declspec(dllexport) Unload(void)
extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 10, 0, 2))
- {
- MessageBox(NULL, _T("The MSN protocol plugin cannot be loaded. It requires Miranda IM 0.10.0.2 or later."),
- _T("MSN Protocol"), MB_OK | MB_ICONWARNING | MB_SETFOREGROUND | MB_TOPMOST);
- return NULL;
- }
-
return &pluginInfo;
}
diff --git a/protocols/Omegle/main.cpp b/protocols/Omegle/main.cpp
index 3dd6570182..d433e48e86 100644
--- a/protocols/Omegle/main.cpp
+++ b/protocols/Omegle/main.cpp
@@ -75,22 +75,6 @@ DWORD WINAPI DllMain(HINSTANCE hInstance,DWORD,LPVOID)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if(mirandaVersion > PLUGIN_MAKE_VERSION(0,10,0,0) &&
- mirandaVersion < PLUGIN_MAKE_VERSION(0,10,0,2))
- {
- MessageBox(0,_T("The Omegle protocol plugin cannot be loaded. ")
- _T("It requires Miranda IM 0.10 alpha build #2 or later."),_T("Miranda"),
- MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST);
- return NULL;
- }
- else if(mirandaVersion < PLUGIN_MAKE_VERSION(0,9,43,0))
- {
- MessageBox(0,_T("The Omegle protocol plugin cannot be loaded. ")
- _T("It requires Miranda IM 0.9.43 or later."),_T("Miranda"),
- MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST);
- return NULL;
- }
-
g_mirandaVersion = mirandaVersion;
return &pluginInfo;
}
diff --git a/protocols/Weather/weather.cpp b/protocols/Weather/weather.cpp
index c0dc3c3373..e5458336c5 100644
--- a/protocols/Weather/weather.cpp
+++ b/protocols/Weather/weather.cpp
@@ -85,13 +85,7 @@ static const PLUGININFOEX pluginInfoEx =
extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,0)) {
- MessageBoxA(NULL, "Weather Protocol requires Miranda 0.8.0.0 or later to run.", "Weather Protocol", MB_OK|MB_ICONERROR|MB_APPLMODAL);
- return NULL;
- }
- // if Miranda version is higher than 0.7.0
- else
- return &pluginInfoEx;
+ return &pluginInfoEx;
}
// MirandaPluginInterfaces - returns the protocol interface to the core
diff --git a/protocols/Yahoo/main.cpp b/protocols/Yahoo/main.cpp
index 7c53c2f1df..2814db5512 100644
--- a/protocols/Yahoo/main.cpp
+++ b/protocols/Yahoo/main.cpp
@@ -171,19 +171,7 @@ extern "C" int __declspec(dllexport) Unload(void)
*/
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- /*
- * This requires the latest trunk... [md5, sha, etc..]
- */
- if (mirandaVersion < MIRANDA_VERSION_CORE ) {
- MessageBoxA( NULL,
- "Yahoo plugin cannot be loaded. It requires Miranda IM " MIRANDA_VERSION_CORE_STRING " or later.",
- "Yahoo",
- MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
-
- return NULL;
- }
-
- return &pluginInfo;
+ return &pluginInfo;
}
/*