summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-23 03:24:34 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-23 03:24:34 +0000
commitef2480c037838908f8dfa6224e1b8e52a5093ac7 (patch)
treefa7f27b7412aa53fee1be007596bff660f2f7568
parent850e6d0b1ef34cb0ab6f4fa60327621254f69384 (diff)
version check, for tabbed options
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@60 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--iax/dllmain.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/iax/dllmain.cpp b/iax/dllmain.cpp
index a96ab4c..fdeee19 100644
--- a/iax/dllmain.cpp
+++ b/iax/dllmain.cpp
@@ -74,6 +74,12 @@ HANDLE hModulesLoaded;
extern "C" __declspec (dllexport) int __cdecl Load(PLUGINLINK *link) {
pluginLink=link;
+ DWORD mirandaVersion = CallService(MS_SYSTEM_GETVERSION, 0, 0);
+ if(mirandaVersion < (MIRANDA_VER << 8)) {
+ MessageBox(0, Translate("This plugin requires Miranda version 0.6+. Plugin disabled."), Translate("IAX Plugin error"), MB_OK | MB_ICONERROR);
+ return 1;
+ }
+
PreInitOptions();
if(!InitIAXInterface()) {