Commit a932ee96 authored by nanahira's avatar nanahira

update authorize way of reconnect

parent 14f2b9d9
......@@ -447,10 +447,10 @@ release_disconnect = (dinfo, reconnected) ->
return
CLIENT_get_authorize_key = (client) ->
if settings.modules.mycard.enabled or client.is_local
if settings.modules.mycard.enabled or settings.modules.tournament_mode.enabled or client.is_local
return client.name
else
return client.ip
return client.ip + ":" + client.name
CLIENT_reconnect_unregister = (client, reconnected, exact) ->
if !settings.modules.reconnect.enabled
......
......@@ -580,10 +580,10 @@
};
CLIENT_get_authorize_key = function(client) {
if (settings.modules.mycard.enabled || client.is_local) {
if (settings.modules.mycard.enabled || settings.modules.tournament_mode.enabled || client.is_local) {
return client.name;
} else {
return client.ip;
return client.ip + ":" + client.name;
}
};
......
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