Commit 0cefc4cb authored by nanahira's avatar nanahira

fix

parent 43fb0c25
......@@ -513,7 +513,8 @@ ROOM_unwelcome = (room, bad_player, reason)->
CLIENT_kick = (client) ->
client.system_kicked = true
if settings.modules.reconnect.enabled and client.closed
client.server.destroy()
if client.server and !client.had_new_reconnection
client.server.destroy()
else
client.destroy()
return
......
......@@ -637,7 +637,9 @@
CLIENT_kick = function(client) {
client.system_kicked = true;
if (settings.modules.reconnect.enabled && client.closed) {
client.server.destroy();
if (client.server && !client.had_new_reconnection) {
client.server.destroy();
}
} else {
client.destroy();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment