Don't break IRC control characters in some encodings

Fix #577
This commit is contained in:
Alexey Sokolov
2014-12-21 17:09:59 +00:00
parent bd9450b99e
commit 8930fc4d7a
6 changed files with 95 additions and 4 deletions

View File

@@ -577,6 +577,8 @@ CString CUser::AddTimestamp(time_t tm, const CString& sStr) const {
// \x1D italic
// \x1F underline
// Also see http://www.visualirc.net/tech-attrs.php
//
// Keep in sync with CIRCSocket::IcuExt__UCallback
if (CString::npos != sRet.find_first_of("\x02\x03\x04\x0F\x12\x16\x1D\x1F")) {
sRet += "\x0F";
}