QTfrontend/chatwidget.cpp
changeset 1626 58fd5bc49a04
parent 1589 53eb1d3953ef
child 1666 b66e014510e7
--- 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("<font color=grey>%1</font>").arg(formattedStr);
 	
-	chatStrings.append(Qt::escape(str));
+	chatStrings.append(formattedStr);
 	
 	chatText->setHtml(chatStrings.join("<br>"));