Commit 49228b32 authored by nanahira's avatar nanahira

improve

parent 0b913f4b
......@@ -1787,6 +1787,8 @@ ygopro.ctos_follow 'PLAYER_INFO', true, (buffer, info, client, server, datas)->
client.name = name
client.vpass = vpass
client.name_vpass = if vpass then name + "$" + vpass else name
if settings.modules.pre_release_compat.enabled
client.is_using_pre_release = client.name_vpass == "COMPAT"
#console.log client.name, client.vpass
if settings.modules.vip.enabled and CLIENT_check_vip(client)
client.vip = true
......
......@@ -2278,6 +2278,9 @@
client.name = name;
client.vpass = vpass;
client.name_vpass = vpass ? name + "$" + vpass : name;
if (settings.modules.pre_release_compat.enabled) {
client.is_using_pre_release = client.name_vpass === "COMPAT";
}
if (settings.modules.vip.enabled && CLIENT_check_vip(client)) {
client.vip = true;
}
......
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