From a53d997586800ac14c423dfe436a958d107849f8 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Wed, 4 Jul 2012 16:08:25 +0100 Subject: [PATCH] Only prepend the timestamps with \0F if they use formatting This fixes a bug with fish implementation and append timestamps --- src/User.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/User.cpp b/src/User.cpp index 62ff877a..5b9efa6f 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -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; }