From 0b7ff8cb10d0f26ff02ea2ac9469fb86d4a06849 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 24 Jan 2023 17:10:25 +0000 Subject: hostname, print disconnects --- server/server.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'server') diff --git a/server/server.lua b/server/server.lua index 6a36b71..7f7cc92 100644 --- a/server/server.lua +++ b/server/server.lua @@ -79,6 +79,7 @@ while true do elseif ev.type == "disconnect" then local player, idx = player_by_peer(ev.peer) if not player then error("sneeze "..ev.peer) end + print("disconnect",player.peer,player.id) table.remove(playerlist,idx) for i,otherplayer in ipairs(playerlist) do otherplayer.peer:send(player_leave_packet(player)) -- cgit v1.2.3