From 48527fe64b22516f1e4b2a609b50f7166e9059ee Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 11 Nov 2012 22:09:56 +0000 Subject: - removed extra icon settings - ability to set unicode status message git-svn-id: http://svn.miranda-ng.org/main/trunk@2292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ListeningTo/src/listeningto.cpp | 15 +++++---------- plugins/ListeningTo/src/resource.h | 4 ++-- 2 files changed, 7 insertions(+), 12 deletions(-) (limited to 'plugins/ListeningTo/src') diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp index 1e96c23450..538dc8ba89 100644 --- a/plugins/ListeningTo/src/listeningto.cpp +++ b/plugins/ListeningTo/src/listeningto.cpp @@ -114,7 +114,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvRe extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { - pluginInfo.cbSize = sizeof(PLUGININFOEX); return &pluginInfo; } @@ -723,22 +722,18 @@ void SetListeningInfo(char *proto, LISTENINGTOINFO *lti) mir_free(fr[1]); } } - else if (ProtoServiceExists(proto, PS_SETAWAYMSG)) + else if (ProtoServiceExists(proto, PS_SETAWAYMSGT)) { + int status = CallProtoService(proto, PS_GETSTATUS, 0, 0); if (lti == NULL) { - int status = CallProtoService(proto, PS_GETSTATUS, 0, 0); - CallProtoService(proto, PS_SETAWAYMSG, (WPARAM) status, 0); + CallProtoService(proto, PS_SETAWAYMSGT, (WPARAM) status, 0); } else { TCHAR *fr = (TCHAR *)GetParsedFormat(0, (WPARAM) lti); - char *info = mir_t2a(fr); - int status = CallProtoService(proto, PS_GETSTATUS, 0, 0); - CallProtoService(proto, PS_SETAWAYMSG, (WPARAM)status, (LPARAM)info); - + CallProtoService(proto, PS_SETAWAYMSGT, (WPARAM)status, (LPARAM)fr); mir_free(fr); - mir_free(info); } } } @@ -762,7 +757,7 @@ INT_PTR EnableListeningTo(WPARAM wParam,LPARAM lParam) { if (!ProtoServiceExists(proto, PS_SET_LISTENINGTO) && !ProtoServiceExists(proto, PS_ICQ_SETCUSTOMSTATUSEX) && - !ProtoServiceExists(proto, PS_SETAWAYMSG)) // by yaho + !ProtoServiceExists(proto, PS_SETAWAYMSGT)) // by yaho return 0; char setting[256]; diff --git a/plugins/ListeningTo/src/resource.h b/plugins/ListeningTo/src/resource.h index d4084c98b4..95f9a32dd7 100644 --- a/plugins/ListeningTo/src/resource.h +++ b/plugins/ListeningTo/src/resource.h @@ -1,6 +1,6 @@ //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. -// Used by resource.rc +// Used by C:\Users\xx\Documents\Visual Studio 2010\Projects\myranda\plugins\ListeningTo\res\resource.rc // #define IDD_OPTIONS 119 #define IDD_PLAYERS 120 @@ -80,7 +80,7 @@ #define IDC_STATIC -1 // Next default values for new objects -// +// #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NO_MFC 1 -- cgit v1.2.3