summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp6
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) {