From 7ae091783220d08f7ff19d40323286376956fe57 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Jul 2020 19:42:41 +0300 Subject: fix for old bug with passing parameters inside IEView --- plugins/IEView/src/TemplateHTMLBuilder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/IEView/src/TemplateHTMLBuilder.cpp') diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index 23698c65b0..632344d72c 100644 --- a/plugins/IEView/src/TemplateHTMLBuilder.cpp +++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp @@ -175,13 +175,13 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr ptrW tszNick(Contact_GetInfo(CNF_NICK, event->hContact, szRealProto)); if (tszNick != nullptr) - szNickIn = encodeUTF8(event->hContact, szRealProto, tszNick, ENF_NAMESMILEYS, true); + szNickIn = encodeUTF8(event->hContact, tszNick, ENF_NAMESMILEYS, true); tszNick = Contact_GetInfo(CNF_CUSTOMNICK, 0, szRealProto); if (tszNick == nullptr) Contact_GetInfo(CNF_NICK, 0, szRealProto); if (tszNick != nullptr) - szNickOut = encodeUTF8(event->hContact, szRealProto, tszNick, ENF_NAMESMILEYS, true); + szNickOut = encodeUTF8(event->hContact, tszNick, ENF_NAMESMILEYS, true); Template *tmplt = nullptr; if (tmpm) { @@ -349,13 +349,13 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, ptrW tszNick(Contact_GetInfo(CNF_NICK, event->hContact, szProto)); if (tszNick != nullptr) - szNickIn = encodeUTF8(event->hContact, szRealProto, tszNick, ENF_NAMESMILEYS, true); + szNickIn = encodeUTF8(event->hContact, tszNick, ENF_NAMESMILEYS, true); tszNick = Contact_GetInfo(CNF_CUSTOMNICK, 0, szProto); if (tszNick == nullptr) tszNick = Contact_GetInfo(CNF_NICK, 0, szProto); if (tszNick != nullptr) - szNickOut = encodeUTF8(event->hContact, szRealProto, tszNick, ENF_NAMESMILEYS, true); + szNickOut = encodeUTF8(event->hContact, tszNick, ENF_NAMESMILEYS, true); IEVIEWEVENTDATA *eventData = event->eventData; for (int eventIdx = 0; eventData != nullptr && (eventIdx < event->count || event->count == -1); eventData = eventData->next, eventIdx++) { -- cgit v1.2.3