X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=7dcf92225a2630f9f6805e31a541eb6d32ac142f;hb=2a36c945e6c9107f400dfb24d57c682f1c7f49e2;hp=c42fc7b62d003c6aab6b2a000fb8a7503d3922f6;hpb=8999ffa5e50d2c772b2cf765e24f2e3df76fee44;p=brisk.git diff --git a/web/commons.js b/web/commons.js index c42fc7b..7dcf922 100644 --- a/web/commons.js +++ b/web/commons.js @@ -358,7 +358,12 @@ function chatt_checksend(obj,e) } function act_chatt(value) { - send_mesg("chatt|"+encodeURIComponent(value)); + if (value.substring(0, 6) == "/info ") { + info_show(value.substring(6)); + } + else { + send_mesg("chatt|"+encodeURIComponent(value)); + } /* obj.disabled = true; obj.value = ""; @@ -1038,12 +1043,14 @@ function user_decorator(user, is_real) } } - if (flags != 0) + if (flags != 0) { name = ""+user[1]+""; - else + (is_real && (flags & 0xfffffe && ((flags & 0x01) == 0)) ? "id_usr" : "") + + "'>" + user[1] + ""; + } + else { name = user[1]; + } return (name); }