From 1cf47d1eaff4d7d7242d0ab87dd540ae5b400833 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Jul 2012 08:32:16 +0000 Subject: MSN status messages git-svn-id: http://svn.miranda-ng.org/main/trunk@987 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/msn_commands.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'protocols') diff --git a/protocols/MSN/msn_commands.cpp b/protocols/MSN/msn_commands.cpp index b83def22d2..76dab93234 100644 --- a/protocols/MSN/msn_commands.cpp +++ b/protocols/MSN/msn_commands.cpp @@ -836,11 +836,12 @@ void CMsnProto::sttProcessStatusMessage(char* buf, unsigned len, const char* wli stripColorCode((char*)szStatMsg); DBWriteContactSettingStringUtf(hContact, "CList", "StatusMsg", szStatMsg); } - else - DBDeleteContactSetting(hContact, "CList", "StatusMsg"); + else DBDeleteContactSetting(hContact, "CList", "StatusMsg"); - mir_utf8decode((char*)szStatMsg, NULL); - SendBroadcast(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, NULL, (LPARAM)szStatMsg); + { + mir_ptr tszStatus( mir_utf8decodeT(szStatMsg)); + SendBroadcast(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, NULL, tszStatus); + } // Process current media info const char* szCrntMda = ezxml_txt(ezxml_child(xmli, "CurrentMedia")); -- cgit v1.2.3