Commit ac791145 authored by nanahira's avatar nanahira

fix

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