summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_chatrooms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_chatrooms.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_chatrooms.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp
index 7f00bcd8e7..32299ec583 100644
--- a/protocols/SkypeWeb/src/skype_chatrooms.cpp
+++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp
@@ -435,9 +435,12 @@ void CSkypeProto::AddMessageToChat(const TCHAR *chat_id, const TCHAR *from, cons
gce.ptszNick = from;
gce.time = timestamp;
gce.ptszUID = from;
+
ptrA szHtml(RemoveHtml(content));
- CMString tszHtml(mir_utf8decodeT(szHtml));
+
+ CMString tszHtml(ptrT(mir_utf8decodeT(szHtml)));
tszHtml.Replace(L"%", L"%%");
+
if (!isAction)
{
gce.ptszText = tszHtml;
@@ -445,7 +448,7 @@ void CSkypeProto::AddMessageToChat(const TCHAR *chat_id, const TCHAR *from, cons
}
else
{
- gce.ptszText = &tszHtml.GetBuffer()[emoteOffset];
+ gce.ptszText = &(tszHtml.GetBuffer())[emoteOffset];
}
if (isLoading) gce.dwFlags = GCEF_NOTNOTIFY;