From 2439b18edd41da39ada76a0a6cece26151c34b46 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 4 Oct 2019 18:14:18 +0300 Subject: IEView: obsolete protocol management code removed --- plugins/IEView/src/TextToken.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/IEView/src/TextToken.cpp') diff --git a/plugins/IEView/src/TextToken.cpp b/plugins/IEView/src/TextToken.cpp index 0e322d00ec..21c2e8452d 100644 --- a/plugins/IEView/src/TextToken.cpp +++ b/plugins/IEView/src/TextToken.cpp @@ -282,7 +282,7 @@ TextToken* TextToken::tokenizeLinks(const wchar_t *text) return firstToken; } -TextToken* TextToken::tokenizeSmileys(MCONTACT hContact, const char *proto, const wchar_t *text, bool isSent) +TextToken* TextToken::tokenizeSmileys(MCONTACT hContact, const wchar_t *text, bool isSent) { TextToken *firstToken = nullptr, *lastToken = nullptr; int l = (int)mir_wstrlen(text); @@ -291,7 +291,7 @@ TextToken* TextToken::tokenizeSmileys(MCONTACT hContact, const char *proto, cons SMADD_BATCHPARSE2 sp; sp.cbSize = sizeof(sp); - sp.Protocolname = proto; + sp.Protocolname = GetContactProto(hContact); sp.flag = SAFL_PATH | SAFL_UNICODE | (isSent ? SAFL_OUTGOING : 0); sp.wstr = (wchar_t *)text; sp.hContact = hContact; -- cgit v1.2.3