From 3aff1ab6d7649d9729ebad47b7251ebd24c2f917 Mon Sep 17 00:00:00 2001 From: Emma Miler <27428383+emma-miler@users.noreply.github.com> Date: Tue, 12 Apr 2022 22:52:32 +0200 Subject: Restrict and log message sending on connect (#299) * Restrict message sending on connect Restricts users from sending messages until they are fully connected. This is related to a bug where if a player joins the server, send a message, and disconnects quickly enough the join message will not show up in the chat. * Log messages on receive * Fix issue with private lobbies --- Northstar.CustomServers/mod/scripts/vscripts/lobby/_lobby.gnut | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/lobby') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/lobby/_lobby.gnut b/Northstar.CustomServers/mod/scripts/vscripts/lobby/_lobby.gnut index 33c0b8e9..ae933b71 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/lobby/_lobby.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/lobby/_lobby.gnut @@ -25,6 +25,7 @@ void function Lobby_OnClientConnectionStarted( entity player ) void function Lobby_OnClientConnectionCompleted( entity player ) { + player.hasConnected = true FinishClientScriptInitialization( player ) } @@ -35,4 +36,4 @@ bool function ClientCommandCallback_StartPrivateMatchSearch( entity player, arra GameRules_ChangeMap( "mp_lobby", GAMETYPE ) return true -} \ No newline at end of file +} -- cgit v1.2.3