summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-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
10 files changed, 2 insertions, 101 deletions
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;
}
/*