From 35c6f6ccbb11f24a1385c5296a0f2b32c0b90dc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Jan 2017 18:52:14 +0300 Subject: no need to implement the same code in each plugin --- protocols/SkypeWeb/src/skype_chatrooms.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index 55d810ab86..30f566e0fc 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -402,18 +402,6 @@ void CSkypeProto::OnChatEvent(const JSONNode &node) } } -wchar_t* UnEscapeChatTags(wchar_t* str_in) -{ - wchar_t *s = str_in, *d = str_in; - while (*s) { - if (*s == '%' && s[1] == '%') - s++; - *d++ = *s++; - } - *d = 0; - return str_in; -} - void CSkypeProto::OnSendChatMessage(const wchar_t *chat_id, const wchar_t * tszMessage) { if (!IsOnline()) @@ -421,7 +409,7 @@ void CSkypeProto::OnSendChatMessage(const wchar_t *chat_id, const wchar_t * tszM wchar_t *buf = NEWWSTR_ALLOCA(tszMessage); rtrimw(buf); - UnEscapeChatTags(buf); + Chat_UnescapeTags(buf); ptrA szChatId(mir_u2a(chat_id)); ptrA szMessage(mir_utf8encodeW(buf)); -- cgit v1.2.3