QTfrontend/net/newnetclient.cpp
changeset 8489 25cb6f4a1d1b
parent 8436 b89aacebb9db
child 8534 92da587691c9
--- a/QTfrontend/net/newnetclient.cpp	Sat Feb 09 18:32:51 2013 -0500
+++ b/QTfrontend/net/newnetclient.cpp	Sat Feb 09 18:58:19 2013 -0500
@@ -512,9 +512,12 @@
         QString roomName = tmp.takeFirst();
         m_roomsListModel->updateRoom(roomName, tmp);
 
-        // keep track of room name so correct name is displayed when you become room admin
+        // keep track of room name so correct name is displayed
         if(myroom == roomName)
+        {
             myroom = tmp[1];
+            emit roomNameUpdated(myroom);
+        }
 
         return;
     }
@@ -598,6 +601,18 @@
         return;
     }
 
+    if(lst[0] == "JOINING")
+    {
+        if(lst.size() < 2)
+        {
+            qWarning("Net: Bad JOINING message");
+            return;
+        }
+
+        myroom = lst[1];
+        emit roomNameUpdated(myroom);
+    }
+
     if(netClientState == InLobby && lst[0] == "JOINED")
     {
         if(lst.size() < 2 || lst[1] != mynick)