QTfrontend/newnetclient.cpp
changeset 1600 305e13c5f327
parent 1592 5ee77ee470a6
child 1648 32d99a3c7998
equal deleted inserted replaced
1599:65b5d3cd3e01 1600:305e13c5f327
   209 		return ;
   209 		return ;
   210 	}
   210 	}
   211 
   211 
   212 	if (lst[0] == "ERROR") {
   212 	if (lst[0] == "ERROR") {
   213 		if (lst.size() == 2)
   213 		if (lst.size() == 2)
   214 			QMessageBox::information(0, 0, "Error: " + lst[1]);
   214 			emit showMessage("Error: " + lst[1]);
   215 		else
   215 		else
   216 			QMessageBox::information(0, 0, "Unknown error");
   216 			emit showMessage("Unknown error");
   217 		return;
   217 		return;
   218 	}
   218 	}
   219 
   219 
   220 	if (lst[0] == "WARNING") {
   220 	if (lst[0] == "WARNING") {
   221 		if (lst.size() == 2)
   221 		if (lst.size() == 2)
   222 			QMessageBox::information(0, 0, "Warning: " + lst[1]);
   222 			emit showMessage("Warning: " + lst[1]);
   223 		else
   223 		else
   224 			QMessageBox::information(0, 0, "Unknown warning");
   224 			emit showMessage("Unknown warning");
   225 		return;
   225 		return;
   226 	}
   226 	}
   227 
   227 
   228 	if (lst[0] == "CONNECTED") {
   228 	if (lst[0] == "CONNECTED") {
   229 		RawSendNet(QString("NICK%1%2").arg(delimeter).arg(mynick));
   229 		RawSendNet(QString("NICK%1%2").arg(delimeter).arg(mynick));
   332 		return;
   332 		return;
   333 	}
   333 	}
   334 
   334 
   335 	if(lst[0]=="ROOMABANDONED") {
   335 	if(lst[0]=="ROOMABANDONED") {
   336 		netClientState = 2;
   336 		netClientState = 2;
       
   337 		emit showMessage(HWNewNet::tr("Room destroyed"));
   337 		emit LeftRoom();
   338 		emit LeftRoom();
   338 		return;
   339 		return;
   339 	}
   340 	}
   340 
   341 
   341 	if(lst[0]=="JOINED") {
   342 	if(lst[0]=="JOINED") {