QTfrontend/newnetclient.cpp
changeset 1471 b5295ec49e94
parent 1462 d3323637da1f
child 1475 bab5650fc894
--- 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();