summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/IRCG/src/irclib.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp
index b36e1b37e7..6cf422882d 100644
--- a/protocols/IRCG/src/irclib.cpp
+++ b/protocols/IRCG/src/irclib.cpp
@@ -388,7 +388,8 @@ void CIrcProto::DoReceive()
ptrW ptszMsg;
if (codepage != CP_UTF8 && m_utfAutodetect && Utf8CheckString(pStart))
ptszMsg = mir_utf8decodeW(pStart);
- else
+
+ if (ptszMsg == nullptr)
ptszMsg = mir_a2u_cp(pStart, codepage);
CIrcMessage msg(this, ptszMsg, codepage, true);