QTfrontend/newnetclient.cpp
changeset 1405 ee4b28a1861d
parent 1404 2b6b6809c2e4
child 1410 eece43296890
equal deleted inserted replaced
1404:2b6b6809c2e4 1405:ee4b28a1861d
   251 		}
   251 		}
   252 		emit chatStringFromNet(formatChatMsg(lst[1], lst[2]));
   252 		emit chatStringFromNet(formatChatMsg(lst[1], lst[2]));
   253 		return;
   253 		return;
   254 	}
   254 	}
   255 
   255 
       
   256 	if (lst[0] == "READY") {
       
   257 		if(lst.size() != 2)
       
   258 		{
       
   259 			qWarning("Net: Malformed READY message");
       
   260 			return;
       
   261 		}
       
   262 		emit setReadyStatus(lst[1], true);
       
   263 		return;
       
   264 	}
       
   265 	if (lst[0] == "NOT_READY") {
       
   266 		if(lst.size() != 2)
       
   267 		{
       
   268 			qWarning("Net: Malformed NOT_READY message");
       
   269 			return;
       
   270 		}
       
   271 		emit setReadyStatus(lst[1], false);
       
   272 		return;
       
   273 	}
       
   274 
   256 	if (lst[0] == "ADD_TEAM") {
   275 	if (lst[0] == "ADD_TEAM") {
   257 		if(lst.size() != 21)
   276 		if(lst.size() != 21)
   258 		{
   277 		{
   259 			qWarning("Net: Bad ADDTEAM message");
   278 			qWarning("Net: Bad ADDTEAM message");
   260 			return;
   279 			return;