X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Froom.js;h=38a3d2a410cc8b769f89f4f1e0a757f14d7db6fe;hb=bbd72460bcf4269ffd21cfb97e0ab616ac7276e7;hp=787426385b581fd2b68f3c825b82a5dd3700a13d;hpb=34f47608a4812b8b32c97a0a776de69d750e3d6b;p=brisk.git 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); } }