QTfrontend/newnetclient.cpp
changeset 1471 b5295ec49e94
parent 1462 d3323637da1f
child 1475 bab5650fc894
equal deleted inserted replaced
1470:ebaca3b66d92 1471:b5295ec49e94
   149 	}
   149 	}
   150 }
   150 }
   151 
   151 
   152 void HWNewNet::OnConnect()
   152 void HWNewNet::OnConnect()
   153 {
   153 {
   154 	RawSendNet(QString("NICK%1%2").arg(delimeter).arg(mynick));
       
   155 	RawSendNet(QString("PROTO%1%2").arg(delimeter).arg(*cProtoVer));
       
   156 }
   154 }
   157 
   155 
   158 void HWNewNet::OnDisconnect()
   156 void HWNewNet::OnDisconnect()
   159 {
   157 {
   160   //emit ChangeInTeams(QStringList());
   158   //emit ChangeInTeams(QStringList());
   217 			QMessageBox::information(0, 0, "Unknown warning");
   215 			QMessageBox::information(0, 0, "Unknown warning");
   218 		return;
   216 		return;
   219 	}
   217 	}
   220 
   218 
   221 	if (lst[0] == "CONNECTED") {
   219 	if (lst[0] == "CONNECTED") {
       
   220 		RawSendNet(QString("NICK%1%2").arg(delimeter).arg(mynick));
       
   221 		RawSendNet(QString("PROTO%1%2").arg(delimeter).arg(*cProtoVer));
   222 		netClientState = 1;
   222 		netClientState = 1;
   223 		m_game_connected = true;
   223 		m_game_connected = true;
   224 		emit Connected();
   224 		emit Connected();
   225 		return;
   225 		return;
   226 	}
   226 	}