# HG changeset patch
# User unc0rr
# Date 1231522033 0
# Node ID 58fd5bc49a0415e302b84d66b5e8b0fcbffe64c7
# Parent 37aae47943ce65e629cba46f2fab5e5615f79f5a
Colorize join/quit messages
diff -r 37aae47943ce -r 58fd5bc49a04 QTfrontend/chatwidget.cpp
--- a/QTfrontend/chatwidget.cpp Fri Jan 09 14:47:54 2009 +0000
+++ b/QTfrontend/chatwidget.cpp Fri Jan 09 17:27:13 2009 +0000
@@ -75,8 +75,12 @@
{
if (chatStrings.size() > 250)
chatStrings.removeFirst();
+
+ QString formattedStr = Qt::escape(str);
+ if (formattedStr.startsWith("***"))
+ formattedStr = QString("%1").arg(formattedStr);
- chatStrings.append(Qt::escape(str));
+ chatStrings.append(formattedStr);
chatText->setHtml(chatStrings.join("
"));