QTfrontend/newnetclient.cpp
changeset 1587 b8a3d449bed7
parent 1585 9f9138531070
child 1591 1db9b654f880
--- a/QTfrontend/newnetclient.cpp	Tue Jan 06 14:18:09 2009 +0000
+++ b/QTfrontend/newnetclient.cpp	Tue Jan 06 14:29:34 2009 +0000
@@ -19,7 +19,6 @@
 
 #include <QMessageBox>
 #include <QDebug>
-#include <QTextDocument>
 
 #include "hwconsts.h"
 #include "newnetclient.h"
@@ -279,9 +278,9 @@
 		QStringList tmp = lst;
 		tmp.removeFirst();
 		if (netClientState == 2)
-			emit chatStringLobby(Qt::escape(tmp.join("\n")));
+			emit chatStringLobby(tmp.join("\n"));
 		else
-			emit chatStringFromNet(Qt::escape(tmp.join("\n")));
+			emit chatStringFromNet(tmp.join("\n"));
 		return;
 	}
 
@@ -648,9 +647,9 @@
 QString HWNewNet::formatChatMsg(const QString & nick, const QString & msg)
 {
 	if(msg.left(4) == "/me ")
-		return QString("* %1 %2").arg(Qt::escape(nick)).arg(Qt::escape(msg.mid(4)));
+		return QString("* %1 %2").arg(nick).arg(msg.mid(4));
 	else
-		return QString("%1: %2").arg(Qt::escape(nick)).arg(Qt::escape(msg));
+		return QString("%1: %2").arg(nick).arg(msg);
 }
 
 void HWNewNet::kickPlayer(const QString & nick)