diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-16 08:32:16 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-16 08:32:16 +0000 |
commit | 1cf47d1eaff4d7d7242d0ab87dd540ae5b400833 (patch) | |
tree | 252cc46b0a1f9b67d75e6d7b12ed656ba95e7c29 /protocols | |
parent | 92ae639c117fb2f8c8b28799356b747547330819 (diff) |
MSN status messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@987 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/MSN/msn_commands.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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<TCHAR> 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"));
|