mirror of
https://github.com/znc/znc.git
synced 2026-06-30 15:01:54 +02:00
Add more control codes and comments.
This commit is contained in:
+11
-1
@@ -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 ";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user