X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2Froom.js;h=38a3d2a410cc8b769f89f4f1e0a757f14d7db6fe;hp=787426385b581fd2b68f3c825b82a5dd3700a13d;hb=bbd72460bcf4269ffd21cfb97e0ab616ac7276e7;hpb=22d489aa1f47bfaec201d561c773d4649bbdae84 diff --git a/web/room.js b/web/room.js index 7874263..38a3d2a 100644 --- a/web/room.js +++ b/web/room.js @@ -504,13 +504,13 @@ function j_check_login(login, ret) (login[i] >= 'A' && login[i] <= 'Z')) { if (old_c != login[i]) { old_c = login[i]; - old_ct = 0; + old_ct = 1; } else { - if (old_ct > 3) { + if (old_ct > 2) { // FIXME LANG - ret.ret = (g_lang == 'en' ? "More than three contiguous '" + old_c + "' not allowed." : - "Il nickname contiene più di tre caratteri '" + old_c + "' consecutivi."); + ret.ret = (g_lang == 'en' ? "More than two contiguous '" + old_c + "' not allowed." : + "Il nickname contiene più di 2 caratteri '" + old_c + "' consecutivi."); return (false); } }