QTfrontend/newnetclient.cpp
changeset 1307 ce26e16d18ab
parent 1305 453882eb4467
child 1308 d5dcd6cfa5e2
--- a/QTfrontend/newnetclient.cpp	Sun Oct 05 23:36:11 2008 +0000
+++ b/QTfrontend/newnetclient.cpp	Mon Oct 06 18:07:38 2008 +0000
@@ -173,12 +173,20 @@
 
 	if (lst[0] == "ERROR") {
 		if (lst.size() == 2)
-			QMessageBox::information(0, 0, lst[1]);
+			QMessageBox::information(0, 0, "Error: " + lst[1]);
 		else
 			QMessageBox::information(0, 0, "Unknown error");
 		return;
 	}
 
+	if (lst[0] == "WARNING") {
+		if (lst.size() == 2)
+			QMessageBox::information(0, 0, "Warning: " + lst[1]);
+		else
+			QMessageBox::information(0, 0, "Unknown warning");
+		return;
+	}
+
   if (lst[0] == "CONNECTED") {
     m_game_connected=true;
     emit Connected();