use user->is_appr() when needed
[brisk.git] / web / commons.js
index b3c6138..7dcf922 100644 (file)
@@ -359,7 +359,7 @@ function chatt_checksend(obj,e)
 function act_chatt(value)
 {
     if (value.substring(0, 6) == "/info ") {
-        show_user_info(value.substring(6));
+        info_show(value.substring(6));
     }
     else {
         send_mesg("chatt|"+encodeURIComponent(value));
@@ -1043,12 +1043,14 @@ function user_decorator(user, is_real)
         }
     }
 
-    if (flags != 0)
+    if (flags != 0) {
         name = "<span class='" + cl + "'><span class='" +
-        (is_real && (flags & 0xfffffe) ? "id_usr" : "") +
-        "'>"+user[1]+"</span></span>";
-    else
+        (is_real && (flags & 0xfffffe && ((flags & 0x01) == 0)) ? "id_usr" : "") +
+        "'>" + user[1] + "</span></span>";
+    }
+    else {
         name = user[1];
+    }
 
     return (name);
 }