summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-23 18:52:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-23 18:52:14 +0300
commit35c6f6ccbb11f24a1385c5296a0f2b32c0b90dc9 (patch)
tree3e40f085a7114254966ddadafd1b92388c85b54e /protocols/SkypeWeb/src
parentac6a2d3c5a668324d4115305a621a81e4b5d99fb (diff)
no need to implement the same code in each plugin
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/skype_chatrooms.cpp14
1 files changed, 1 insertions, 13 deletions
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));