Permalink
Browse files

Merge pull request #85 from reubenmorais/master

Clear text colors before appending timestamps to messages
  • Loading branch information...
2 parents 0b6d609 + 6ed3b27 commit 970b87a5c5a97af5fc8ee1fbe44214a8aa9d6582 @DarthGandalf DarthGandalf committed Nov 4, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/User.cpp
View
@@ -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;
}
}

0 comments on commit 970b87a

Please sign in to comment.