summaryrefslogtreecommitdiff
path: root/plugins/IEView/HistoryHTMLBuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IEView/HistoryHTMLBuilder.cpp')
-rw-r--r--plugins/IEView/HistoryHTMLBuilder.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/IEView/HistoryHTMLBuilder.cpp b/plugins/IEView/HistoryHTMLBuilder.cpp
index 3bce0d8749..bf0c68c8dd 100644
--- a/plugins/IEView/HistoryHTMLBuilder.cpp
+++ b/plugins/IEView/HistoryHTMLBuilder.cpp
@@ -235,16 +235,16 @@ void HistoryHTMLBuilder::appendEventNonTemplate(IEView *view, IEVIEWEVENT *event
|| eventData->iType == IEED_EVENT_URL || eventData->iType == IEED_EVENT_FILE) {
char *szName = NULL;
char *szText = NULL;
- if (eventData->dwFlags & IEEDF_UNICODE_NICK) {
+ if (eventData->dwFlags & IEEDF_UNICODE_NICK)
szName = encodeUTF8(event->hContact, szRealProto, eventData->pszNickW, ENF_NAMESMILEYS, true);
- } else {
+ else
szName = encodeUTF8(event->hContact, szRealProto, eventData->pszNick, ENF_NAMESMILEYS, true);
- }
- if (eventData->dwFlags & IEEDF_UNICODE_TEXT) {
+
+ if (eventData->dwFlags & IEEDF_UNICODE_TEXT)
szText = encodeUTF8(event->hContact, szRealProto, eventData->pszTextW, eventData->iType == IEED_EVENT_MESSAGE ? ENF_ALL : 0, isSent);
- } else {
+ else
szText = encodeUTF8(event->hContact, szRealProto, eventData->pszText, event->codepage, eventData->iType == IEED_EVENT_MESSAGE ? ENF_ALL : 0, isSent);
- }
+
/* History++-specific formatting */
const char *className = NULL;
const char *iconFile = NULL;