From 2858ab4b26ab6247f3ce0669a66dc16d06349644 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Thu, 5 Jul 2012 00:29:30 +0700 Subject: [PATCH] Add more control codes and comments. --- src/User.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/User.cpp b/src/User.cpp index 5b9efa6f..e409d5cb 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -525,7 +525,17 @@ 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. - if (sRet.find_first_of("\x02\x03\x04\x0f\x12\x16\x1F")) { + // + // \x02 bold + // \x03 mIRC-compatible color + // \x04 RRGGBB color + // \x0F normal/reset (turn off bold, colors, etc.) + // \x12 reverse (weechat) + // \x16 reverse (mirc, kvirc) + // \x1D italic + // \x1F underline + // Also see http://www.visualirc.net/tech-attrs.php + if (CString::npos != sRet.find_first_of("\x02\x03\x04\x0F\x12\x16\x1D\x1F")) { sRet += "\x0F "; }