summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commonheaders.h1
-rw-r--r--constants.h1
-rw-r--r--globals.h1
-rw-r--r--init.cpp9
-rw-r--r--options.cpp2
-rw-r--r--utilities.cpp1
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 <m_database.h>
#include <m_options.h>
#include <m_langpack.h>
+#include <m_netlib.h>
#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 <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;
}
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;
}