diff options
author | ubq323 <ubq323@ubq323.website> | 2023-01-24 17:10:25 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-01-24 17:10:25 +0000 |
commit | 0b7ff8cb10d0f26ff02ea2ac9469fb86d4a06849 (patch) | |
tree | 6c12c718ebded6409c4a602c74fd005986686a28 /server/server.lua | |
parent | 40a7718c8fac9eddecef02b490d56b1cdd2a7e91 (diff) |
hostname, print disconnects
Diffstat (limited to 'server/server.lua')
-rw-r--r-- | server/server.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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)) |