diff options
author | George Hazan <ghazan@miranda.im> | 2022-08-05 17:24:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-08-05 17:24:47 +0300 |
commit | de19bf751523d8c78701accc110eae5538cffca4 (patch) | |
tree | d2c5ec4cf068ed49911794daf674b5d01eb63ab6 | |
parent | ac8e92c55a17f723c9e527a8dd087f4ef278404b (diff) |
fixes #3145 (IRC: crash on channels list request)
-rw-r--r-- | protocols/IRCG/src/irclib.cpp | 3 |
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); |