diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-28 13:49:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-28 13:49:29 +0000 |
commit | ebd906de0e8aef7d33ccb2b4f81ad53dfb796fcf (patch) | |
tree | e2a72649284a5388375df090db0cb8d9e2e76481 /protocols/JabberG/src/jabber_thread.cpp | |
parent | 1ab65d264fee46914571415551ed78cde14315a6 (diff) |
more code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@12536 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_thread.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 6043baeafa..5440ad8122 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1348,10 +1348,8 @@ void CJabberProto::OnProcessMessage(HXML node, ThreadData *info) if (szMessage == NULL)
return;
- ptrT tmp(JabberUnixToDosT(szMessage));
- if (tmp == NULL)
- tmp = mir_tstrdup(_T(""));
-
+ CMString tmp(szMessage);
+ tmp.Replace(_T("\n"), _T("\r\n"));
ptrA buf(mir_utf8encodeW(tmp));
if (item != NULL) {
|