Clear text colors before appending timestamps to buffer lines

This commit is contained in:
Reuben Morais
2011-11-04 00:35:35 -02:00
parent 0b6d609014
commit 6ed3b27af4
+5 -1
View File
@@ -524,7 +524,11 @@ CString CUser::AddTimestamp(time_t tm, const CString& sStr) const {
sRet += " " + sStr;
}
if (m_bAppendTimestamp) {
sRet += " ";
// From http://www.mirc.com/colors.html
// The Control+O key combination in mIRC inserts ascii character 15,
// which turns off all previous attributes, including color, bold, underline, and italics.
sRet += "\x0F ";
sRet += szTimestamp;
}
}