QTfrontend/newnetclient.cpp
changeset 1558 3370b7ffeb5c
parent 1541 61b3b32aede8
child 1559 71e1f67dcfe7
equal deleted inserted replaced
1557:0d1fa1d6d8d5 1558:3370b7ffeb5c
   187 		}
   187 		}
   188 }
   188 }
   189 
   189 
   190 void HWNewNet::ParseCmd(const QStringList & lst)
   190 void HWNewNet::ParseCmd(const QStringList & lst)
   191 {
   191 {
   192 	//qDebug() << "Server: " << lst;
   192 	qDebug() << "Server: " << lst;
   193 
   193 
   194 	if(!lst.size())
   194 	if(!lst.size())
   195 	{
   195 	{
   196 		qWarning("Net client: Bad message");
   196 		qWarning("Net client: Bad message");
   197 		return;
   197 		return;
   446 		if(lst.size() < 2)
   446 		if(lst.size() < 2)
   447 		{
   447 		{
   448 			qWarning("Net: Bad GAMEMSG message");
   448 			qWarning("Net: Bad GAMEMSG message");
   449 			return;
   449 			return;
   450 		}
   450 		}
   451 		QByteArray em = QByteArray::fromBase64(lst[1].toAscii());
   451 		for(int i = 1; i < lst.size(); ++i)
   452 		emit FromNet(em);
   452 		{
       
   453 			QByteArray em = QByteArray::fromBase64(lst[1].toAscii());
       
   454 			emit FromNet(em);
       
   455 		}
   453 		return;
   456 		return;
   454 	}
   457 	}
   455 
   458 
   456 	if (lst[0] == "BYE") {
   459 	if (lst[0] == "BYE") {
   457 		if (lst.size() < 2)
   460 		if (lst.size() < 2)