X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=463169decd6e330ab19a113ff672054b25646108;hb=d484aecb2d4013bdae38437a7edea4877261d96b;hp=c42fc7b62d003c6aab6b2a000fb8a7503d3922f6;hpb=8999ffa5e50d2c772b2cf765e24f2e3df76fee44;p=brisk.git diff --git a/web/commons.js b/web/commons.js index c42fc7b..463169d 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 ") { + show_user_info(value.substring(6)); + } + else { + send_mesg("chatt|"+encodeURIComponent(value)); + } /* obj.disabled = true; obj.value = ""; @@ -1040,7 +1045,7 @@ function user_decorator(user, is_real) if (flags != 0) name = ""+user[1]+""; else name = user[1];