Only prepend the timestamps with \0F if they use formatting

This fixes a bug with fish implementation and append timestamps
This commit is contained in:
Kyle Fuller
2012-07-04 16:08:25 +01:00
parent d1e4550663
commit a53d997586

View File

@@ -525,7 +525,9 @@ CString CUser::AddTimestamp(time_t tm, const CString& sStr) const {
// 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 ";
if (sRet.find_first_of("\x02\x03\x04\x0f\x12\x16\x1F")) {
sRet += "\x0F ";
}
sRet += sTimestamp;
}