diff options
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; } |