hedgewars/uFLNetProtocol.pas
branchqmlfrontend
changeset 11419 8a5cc31483c6
parent 11418 091149424aa4
child 11420 ef7f8ac96dfa
--- a/hedgewars/uFLNetProtocol.pas	Fri Nov 20 23:56:13 2015 +0300
+++ b/hedgewars/uFLNetProtocol.pas	Sat Nov 21 00:42:11 2015 +0300
@@ -108,6 +108,8 @@
 
 procedure handler_LOBBY_JOINED_s(var s: TCmdParamS);
 begin
+    if s.str1 = 'qmlfrontend' then sendNet('LIST');
+
     sendUI(mtAddLobbyClient, @s.str1[1], length(s.str1));
 end;
 
@@ -169,7 +171,7 @@
 
         if roomLinesCount = raRoomInfoLength[roomAction] then
         begin
-            sendUI(raRoomAction[roomAction], @roomInfo[1], length(roomInfo));
+            sendUI(raRoomAction[roomAction], @roomInfo[1], length(roomInfo) - 1);
             roomLinesCount:= 0;
             roomInfo:= ''
         end;