Commit 0519334f authored by nanahira's avatar nanahira

limit psw length

parent 703ebb48
...@@ -2670,7 +2670,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)-> ...@@ -2670,7 +2670,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)->
CLIENT_send_vip_status(client) CLIENT_send_vip_status(client)
else else
word = cmd[2] word = cmd[2]
if word if word and client.name.length + word.length <= 18
vip_info.players[client.name].password = word vip_info.players[client.name].password = word
client.vpass = word client.vpass = word
setting_save(vip_info) setting_save(vip_info)
......
...@@ -3370,7 +3370,7 @@ ...@@ -3370,7 +3370,7 @@
CLIENT_send_vip_status(client); CLIENT_send_vip_status(client);
} else { } else {
word = cmd[2]; word = cmd[2];
if (word) { if (word && client.name.length + word.length <= 18) {
vip_info.players[client.name].password = word; vip_info.players[client.name].password = word;
client.vpass = word; client.vpass = word;
setting_save(vip_info); setting_save(vip_info);
......
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