Skip to content

Commit ea375f0

Browse files
committed
Don't send user list.
1 parent 4b3d787 commit ea375f0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

LuaMenu/widgets/api_ingame_interface.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ end
1919

2020
VFS.Include("libs/liblobby/lobby/json.lua")
2121

22+
local SEND_USER_CHANGE_MESSAGE = false
23+
2224
--------------------------------------------------------------------------------
2325
--------------------------------------------------------------------------------
2426
-- Externals Functions
@@ -318,7 +320,7 @@ local function PlayersUpdate(listeners, updatedBattleID)
318320
end
319321
local battle = lobby:GetBattle(lobby:GetMyBattleID()) or {}
320322
local newPlayerCount = (lobby:GetBattlePlayerCount(updatedBattleID) or "??")
321-
local haveNewUsers = IsNewUserList(battle.users)
323+
local haveNewUsers = SEND_USER_CHANGE_MESSAGE and IsNewUserList(battle.users)
322324
if newPlayerCount == oldPlayerCount and not haveNewUsers then
323325
return
324326
end

0 commit comments

Comments
 (0)