summaryrefslogtreecommitdiff
path: root/plugins/CmdLine/src/CmdLine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CmdLine/src/CmdLine.cpp')
-rw-r--r--plugins/CmdLine/src/CmdLine.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/CmdLine/src/CmdLine.cpp b/plugins/CmdLine/src/CmdLine.cpp
index a8224f5b49..1b281cff61 100644
--- a/plugins/CmdLine/src/CmdLine.cpp
+++ b/plugins/CmdLine/src/CmdLine.cpp
@@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
char ModuleName[] = "CmdLine";
HINSTANCE hInstance;
int hLangpack;
+CLIST_INTERFACE *pcli;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
@@ -46,14 +47,12 @@ extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD)
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
+ mir_getCLI();
if (InitServer())
- {
MessageBox(0, TranslateT("Could not initialize CmdLine plugin property"), TranslateT("Error"), MB_ICONEXCLAMATION | MB_OK);
- }
HookEvents();
-
return 0;
}
@@ -64,7 +63,6 @@ extern "C" int __declspec(dllexport) Unload()
UnhookEvents();
DestroyServer();
-
return 0;
}
@@ -72,4 +70,4 @@ bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInstance = hinstDLL;
return TRUE;
-} \ No newline at end of file
+}