diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-07-17 15:03:07 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-07-17 15:03:07 +0300 |
commit | e898920b8a8728296570c8f00b36f810cac09210 (patch) | |
tree | 8c6d44881f5f6d2eb0221d895488df4eba95de17 /init.cpp | |
parent | 13f70f1d0f602e037a6930a1c56ce39f21b2485d (diff) |
modified: commonheaders.h
modified: constants.h
modified: globals.h
modified: init.cpp
modified: options.cpp
modified: utilities.cpp
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -16,7 +16,6 @@ #include "commonheaders.h" -#define PLUGIN_NAME "juick" HINSTANCE hInst; static HANDLE hAccountsChanges, hDbContactAdded; @@ -25,6 +24,7 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam); extern char *date(); list <JabberAccount*> Accounts; XML_API xi; +NETLIBUSER nu; struct MM_INTERFACE mmi; struct UTF8_INTERFACE utfi; @@ -55,7 +55,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { static char plugname[52]; - strcpy(plugname, PLUGIN_NAME" ["); + strcpy(plugname, szModuleName" ["); strcat(plugname, date()); strcat(plugname, " "); strcat(plugname, __TIME__); @@ -77,6 +77,11 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) mir_getMMI(&mmi); mir_getUTFI(&utfi); mir_getXI(&xi); + nu.cbSize = sizeof(nu); + nu.szSettingsModule = szModuleName; + nu.szDescriptiveName = "Juick plugin HTTP connections (avatars)"; + nu.flags = NUF_OUTGOING | NUF_HTTPCONNS; + CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nu); return 0; } |