Follow protocol more precisely in frontend
authorunc0rr
Tue, 04 Nov 2008 16:53:02 +0000
changeset 1471 b5295ec49e94
parent 1470 ebaca3b66d92
child 1472 8127319c02f2
Follow protocol more precisely in frontend
QTfrontend/newnetclient.cpp
--- a/QTfrontend/newnetclient.cpp	Tue Nov 04 15:02:18 2008 +0000
+++ b/QTfrontend/newnetclient.cpp	Tue Nov 04 16:53:02 2008 +0000
@@ -151,8 +151,6 @@
 
 void HWNewNet::OnConnect()
 {
-	RawSendNet(QString("NICK%1%2").arg(delimeter).arg(mynick));
-	RawSendNet(QString("PROTO%1%2").arg(delimeter).arg(*cProtoVer));
 }
 
 void HWNewNet::OnDisconnect()
@@ -219,6 +217,8 @@
 	}
 
 	if (lst[0] == "CONNECTED") {
+		RawSendNet(QString("NICK%1%2").arg(delimeter).arg(mynick));
+		RawSendNet(QString("PROTO%1%2").arg(delimeter).arg(*cProtoVer));
 		netClientState = 1;
 		m_game_connected = true;
 		emit Connected();