diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-23 18:52:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-23 18:52:14 +0300 |
commit | 35c6f6ccbb11f24a1385c5296a0f2b32c0b90dc9 (patch) | |
tree | 3e40f085a7114254966ddadafd1b92388c85b54e /protocols/VKontakte/src | |
parent | ac6a2d3c5a668324d4115305a621a81e4b5d99fb (diff) |
no need to implement the same code in each plugin
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
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;
|