Commit ac791145 authored by nanahira's avatar nanahira

fix

parent a079e998
...@@ -668,7 +668,7 @@ CLIENT_kick = global.CLIENT_kick = (client) -> ...@@ -668,7 +668,7 @@ CLIENT_kick = global.CLIENT_kick = (client) ->
client.system_kicked = true client.system_kicked = true
if settings.modules.reconnect.enabled and client.closed if settings.modules.reconnect.enabled and client.closed
if client.server and !client.had_new_reconnection if client.server and !client.had_new_reconnection
room = ROOM_all[room_id] room = ROOM_all[client.rid]
if room if room
room.disconnect(client) room.disconnect(client)
else else
......
...@@ -850,7 +850,7 @@ ...@@ -850,7 +850,7 @@
client.system_kicked = true; client.system_kicked = true;
if (settings.modules.reconnect.enabled && client.closed) { if (settings.modules.reconnect.enabled && client.closed) {
if (client.server && !client.had_new_reconnection) { if (client.server && !client.had_new_reconnection) {
room = ROOM_all[room_id]; room = ROOM_all[client.rid];
if (room) { if (room) {
room.disconnect(client); room.disconnect(client);
} else { } else {
......
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