summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()) {