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/VKontakte/src/vk_chats.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'protocols/VKontakte/src') diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index 0de83aaa15..39cd7f2704 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -453,18 +453,6 @@ void CVkProto::SetChatStatus(MCONTACT hContact, int iStatus) ///////////////////////////////////////////////////////////////////////////////////////// -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; -} - int CVkProto::OnChatEvent(WPARAM, LPARAM lParam) { GCHOOK *gch = (GCHOOK*)lParam; @@ -483,7 +471,7 @@ int CVkProto::OnChatEvent(WPARAM, LPARAM lParam) if (IsOnline() && mir_wstrlen(gch->ptszText) > 0) { ptrW pwszBuf(mir_wstrdup(gch->ptszText)); rtrimw(pwszBuf); - UnEscapeChatTags(pwszBuf); + Chat_UnescapeTags(pwszBuf); SendMsg(cc->m_hContact, 0, T2Utf(pwszBuf)); } break; -- cgit v1.2.3