From e898920b8a8728296570c8f00b36f810cac09210 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 17 Jul 2010 15:03:07 +0300 Subject: modified: commonheaders.h modified: constants.h modified: globals.h modified: init.cpp modified: options.cpp modified: utilities.cpp --- commonheaders.h | 1 + constants.h | 1 + globals.h | 1 - init.cpp | 9 +++++++-- options.cpp | 2 +- utilities.cpp | 1 + 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/commonheaders.h b/commonheaders.h index 214b69a..8c01fb2 100644 --- a/commonheaders.h +++ b/commonheaders.h @@ -31,6 +31,7 @@ using std::list; #include #include #include +#include #include "resource.h" diff --git a/constants.h b/constants.h index 513154b..b4b3c21 100644 --- a/constants.h +++ b/constants.h @@ -1,4 +1,5 @@ #ifndef CONSTANTS_H #define CONSTANTS_H #define szModuleName "Juick" +#define JUICK_JID "juick@juick.com" #endif diff --git a/globals.h b/globals.h index 7db2500..fc724e2 100644 --- a/globals.h +++ b/globals.h @@ -16,5 +16,4 @@ #ifndef GLOBALS_H #define GLOBALS_H -#define JUICK_JID "juick@juick.com" #endif diff --git a/init.cpp b/init.cpp index 99622ae..003e676 100644 --- a/init.cpp +++ b/init.cpp @@ -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 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; } diff --git a/options.cpp b/options.cpp index 543fdfa..0117f7d 100644 --- a/options.cpp +++ b/options.cpp @@ -27,7 +27,7 @@ int JuickOptInit(WPARAM wParam,LPARAM lParam) odp.cbSize = sizeof(odp); odp.hInstance = hInst; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_JUICK); - odp.pszTitle = "Juick"; + odp.pszTitle = szModuleName; odp.pszGroup = "Message Sessions"; odp.flags=ODPF_BOLDGROUPS; odp.pfnDlgProc = DlgProcJuickOpts; diff --git a/utilities.cpp b/utilities.cpp index f059633..986edbc 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -149,6 +149,7 @@ static JABBER_HANDLER_FUNC MessageHandler(IJabberInterface *ji, HXML node, void { if(!_tcsstr(xi.getAttr(node, 0), _T(JUICK_JID))) return FALSE; + return FALSE; } -- cgit v1.2.3