QTfrontend/newnetclient.cpp
changeset 1377 a9e768739345
parent 1369 f5b1b3fd70cc
child 1378 1a391883261d
equal deleted inserted replaced
1376:6c82ad758a80 1377:a9e768739345
   231 		tmp.removeFirst();
   231 		tmp.removeFirst();
   232 		emit roomsList(tmp);
   232 		emit roomsList(tmp);
   233 		return;
   233 		return;
   234 	}
   234 	}
   235 
   235 
       
   236 	if (lst[0] == "SERVER_MESSAGE") {
       
   237 		if(lst.size() < 2)
       
   238 		{
       
   239 			qWarning("Net: Empty SERVERMESSAGE message");
       
   240 			return;
       
   241 		}
       
   242 		emit serverMessage(lst[1]);
       
   243 		return;
       
   244 	}
       
   245 
   236 	if (lst[0] == "CHAT_STRING") {
   246 	if (lst[0] == "CHAT_STRING") {
   237 		if(lst.size() < 3)
   247 		if(lst.size() < 3)
   238 		{
   248 		{
   239 		qWarning("Net: Empty CHAT_STRING message");
   249 			qWarning("Net: Empty CHAT_STRING message");
   240 		return;
   250 			return;
   241 		}
   251 		}
   242 		emit chatStringFromNet(QString("%1: %2").arg(lst[1]).arg(lst[2]));
   252 		emit chatStringFromNet(QString("%1: %2").arg(lst[1]).arg(lst[2]));
   243 		return;
   253 		return;
   244 	}
   254 	}
   245 
   255