summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-24 20:20:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-24 20:20:43 +0000
commitab9f137bc41278ab2112760cc826d94affdd2c48 (patch)
treefc841ac8f339ca593c36df4c80047787bc62ccaa /protocols
parent87e6c8808ddda005f96fb9244ccf04adf72f46f4 (diff)
fix for MSN status messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@612 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/MSN/msn_commands.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/protocols/MSN/msn_commands.cpp b/protocols/MSN/msn_commands.cpp
index 3e4ebaa8a8..fbec551993 100644
--- a/protocols/MSN/msn_commands.cpp
+++ b/protocols/MSN/msn_commands.cpp
@@ -827,17 +827,16 @@ void CMsnProto::sttProcessStatusMessage(char* buf, unsigned len, const char* wli
}
// Process status message info
- const char* szStatMsg = ezxml_txt(ezxml_child(xmli, "PSM"));
- if (*szStatMsg)
- {
- stripBBCode((char*)szStatMsg);
- stripColorCode((char*)szStatMsg);
- DBWriteContactSettingStringUtf(hContact, "CList", "StatusMsg", szStatMsg);
- }
+ char* szStatMsg = ezxml_txt(ezxml_child(xmli, "PSM"));
+ stripBBCode(szStatMsg);
+ stripColorCode(szStatMsg);
+ TCHAR *tszStatMsg = mir_utf8decodeT(szStatMsg);
+ if (*tszStatMsg)
+ DBWriteContactSettingTString(hContact, "CList", "StatusMsg", tszStatMsg);
else
DBDeleteContactSetting(hContact, "CList", "StatusMsg");
- SendBroadcast(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, NULL, (LPARAM)(TCHAR*)_A2T(szStatMsg));
+ SendBroadcast(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, NULL, (LPARAM)tszStatMsg);
// Process current media info
const char* szCrntMda = ezxml_txt(ezxml_child(xmli, "CurrentMedia"));