Commit 98f72b0c authored by nanahira's avatar nanahira

js

parent be044d32
...@@ -603,10 +603,10 @@ ...@@ -603,10 +603,10 @@
}; };
CLIENT_get_authorize_key = function(client) { CLIENT_get_authorize_key = function(client) {
if (settings.modules.mycard.enabled || settings.modules.tournament_mode.enabled || settings.modules.challonge.enabled || client.is_local) { if (!settings.modules.mycard.enabled && client.vpass) {
return client.name;
} else if (!settings.modules.mycard.enabled && client.vpass) {
return client.name + "$" + client.vpass; return client.name + "$" + client.vpass;
} else if (settings.modules.mycard.enabled || settings.modules.tournament_mode.enabled || settings.modules.challonge.enabled || client.is_local) {
return client.name;
} else { } else {
return client.ip + ":" + client.name; 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