Commit 2c04f999 authored by nanahira's avatar nanahira

fix 11 again

parent dd3618c0
......@@ -1547,7 +1547,7 @@ net.createServer (client) ->
#log.info "server closed", server.client.name, had_error
room=ROOM_all[server.client.rid]
#log.info "server close", server.client.ip, ROOM_connected_ip[server.client.ip]
room.disconnector = 'server' if room and !server.system_kicked
room.disconnector = 'server' if room and !server.system_kicked and !server.had_new_reconnection
unless server.client.closed
ygopro.stoc_send_chat(server.client, "${server_closed}", ygopro.constants.COLORS.RED)
#if room and settings.modules.replay_delay
......@@ -1563,7 +1563,7 @@ net.createServer (client) ->
#log.info "server error", client.name, error
room=ROOM_all[server.client.rid]
#log.info "server err close", client.ip, ROOM_connected_ip[client.ip]
room.disconnector = 'server' if room and !server.system_kicked
room.disconnector = 'server' if room and !server.system_kicked and !server.had_new_reconnection
unless server.client.closed
ygopro.stoc_send_chat(server.client, "${server_error}: #{error}", ygopro.constants.COLORS.RED)
#if room and settings.modules.replay_delay
......
......@@ -2008,7 +2008,7 @@
return;
}
room = ROOM_all[server.client.rid];
if (room && !server.system_kicked) {
if (room && !server.system_kicked && !server.had_new_reconnection) {
room.disconnector = 'server';
}
if (!server.client.closed) {
......@@ -2024,7 +2024,7 @@
return;
}
room = ROOM_all[server.client.rid];
if (room && !server.system_kicked) {
if (room && !server.system_kicked && !server.had_new_reconnection) {
room.disconnector = 'server';
}
if (!server.client.closed) {
......
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