Commit 0cb3ba5d authored by nanahira's avatar nanahira

Merge branch 'mc'

parents c3d96d28 ac791145
......@@ -776,7 +776,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
......
......@@ -1008,7 +1008,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