summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-19 21:16:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-19 21:16:09 +0300
commit18ed16634f78049a3b8ede2ccef6849ac2b2b7da (patch)
tree02aa422d79bb8d4bf1c2fb66db2e2d359b7bca66 /protocols/JabberG
parent8faa984a7eaaeb0d06dacd0f42066071ddd786fb (diff)
fix for status messages retrieving
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index f9c214d730..d67356d965 100755
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -1139,13 +1139,13 @@ void __cdecl CJabberProto::GetAwayMsgThread(void *param)
JABBER_LIST_ITEM *item = ListGetItemPtr(LIST_ROSTER, jid);
if (item != nullptr) {
if (item->arResources.getCount() > 0) {
- CMStringW str;
+ CMStringA str;
for (auto &r : item->arResources)
if (r->m_szStatusMessage)
- str.AppendFormat(L"(%s): %s\r\n", r->m_szResourceName, r->m_szStatusMessage);
+ str.AppendFormat("(%s): %s\r\n", r->m_szResourceName, r->m_szStatusMessage);
str.TrimRight();
- ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, (HANDLE)1, (LPARAM)str.c_str());
+ ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, (HANDLE)1, Utf2T(str));
return;
}