From 6ed3b27af4a686a5dbad5a9a2b49b5a1f700dbca Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Fri, 4 Nov 2011 00:35:35 -0200 Subject: [PATCH] Clear text colors before appending timestamps to buffer lines --- src/User.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/User.cpp b/src/User.cpp index aaea3e27..c196aaf0 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -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; } }