mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Merge pull request #85 from reubenmorais/master
Clear text colors before appending timestamps to messages
This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user