QTfrontend/newnetclient.cpp
changeset 1377 a9e768739345
parent 1369 f5b1b3fd70cc
child 1378 1a391883261d
--- a/QTfrontend/newnetclient.cpp	Sat Oct 18 13:45:42 2008 +0000
+++ b/QTfrontend/newnetclient.cpp	Sat Oct 18 13:53:58 2008 +0000
@@ -233,11 +233,21 @@
 		return;
 	}
 
+	if (lst[0] == "SERVER_MESSAGE") {
+		if(lst.size() < 2)
+		{
+			qWarning("Net: Empty SERVERMESSAGE message");
+			return;
+		}
+		emit serverMessage(lst[1]);
+		return;
+	}
+
 	if (lst[0] == "CHAT_STRING") {
 		if(lst.size() < 3)
 		{
-		qWarning("Net: Empty CHAT_STRING message");
-		return;
+			qWarning("Net: Empty CHAT_STRING message");
+			return;
 		}
 		emit chatStringFromNet(QString("%1: %2").arg(lst[1]).arg(lst[2]));
 		return;