From ed224137da84e8e214588f4207f0da2842a47cf4 Mon Sep 17 00:00:00 2001 From: sje Date: Fri, 13 Jul 2007 04:28:21 +0000 Subject: updated dependencies git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@283 4f64403b-2f21-0410-a795-97e2b3489a10 --- iax/dllmain.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'iax/dllmain.cpp') diff --git a/iax/dllmain.cpp b/iax/dllmain.cpp index 957d779..69f5776 100644 --- a/iax/dllmain.cpp +++ b/iax/dllmain.cpp @@ -77,8 +77,17 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { } InitIcons(); - InitMenu(); + PreInitOptions(); + + if(!InitIAXInterface()) { + MessageBox(0, Translate("Failed to initialize IAX Client library. Plugin disabled."), Translate("IAX Plugin error"), MB_OK | MB_ICONERROR); + return 1; + } + + InitOptions(); + InitMenu(); + return 0; } @@ -98,13 +107,6 @@ extern "C" __declspec (dllexport) int __cdecl Load(PLUGINLINK *link) { return 1; } - PreInitOptions(); - - if(!InitIAXInterface()) { - MessageBox(0, Translate("Failed to initialize IAX Client library. Plugin disabled."), Translate("IAX Plugin error"), MB_OK | MB_ICONERROR); - return 1; - } - if(ServiceExists(MS_DB_SETSETTINGRESIDENT)) { // 0.6+ CallService(MS_DB_SETSETTINGRESIDENT, TRUE, (LPARAM)(MODULE "/Status")); CallService(MS_DB_SETSETTINGRESIDENT, TRUE, (LPARAM)(MODULE "/LineNo")); @@ -128,8 +130,6 @@ extern "C" __declspec (dllexport) int __cdecl Load(PLUGINLINK *link) { // since we can call people when not registered... SetContactStatus(ID_STATUS_ONLINE); - InitOptions(); - // hook modules loaded hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); hPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, PreShutdown); -- cgit v1.2.3