Fix erroneous message in console debug
authorunc0rr
Sat, 30 Nov 2013 20:53:54 +0400
changeset 9730 20dca3377887
parent 9729 6a3640c4f4b7
child 9731 953197ac43d8
Fix erroneous message in console debug
QTfrontend/net/newnetclient.cpp
--- a/QTfrontend/net/newnetclient.cpp	Sat Nov 30 17:43:58 2013 +0400
+++ b/QTfrontend/net/newnetclient.cpp	Sat Nov 30 20:53:54 2013 +0400
@@ -627,7 +627,7 @@
 
     if(lst[0] == "JOINING")
     {
-        if(lst.size() < 2)
+        if(lst.size() != 2)
         {
             qWarning("Net: Bad JOINING message");
             return;
@@ -635,6 +635,7 @@
 
         myroom = lst[1];
         emit roomNameUpdated(myroom);
+        return;
     }
 
     if(netClientState == InLobby && lst[0] == "JOINED")