Merge pull request #85 from reubenmorais/master

Clear text colors before appending timestamps to messages
This commit is contained in:
Alexey Sokolov
2011-11-04 05:42:55 -07:00
+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;
}
}