forced bold flag to user_decorator instead of place bold tag directly into the chat
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Sun, 4 Dec 2011 15:11:37 +0000 (16:11 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Sun, 4 Dec 2011 15:11:37 +0000 (16:11 +0100)
web/commons.js

index ec1b88a..77be887 100644 (file)
@@ -796,8 +796,8 @@ function chatt_sub(dt,data,str)
     var name;
     var flags;
     var isauth;
-
-    name = user_decorator(data)
+    var bolder = [ (data[0] | 1), data[1] ];
+    name = user_decorator(bolder);
 
     if ($("txt").scrollTop + parseInt(getStyle($("txt"),"height", "height")) -  $("txt").scrollHeight >= 0)
         must_scroll = true;
@@ -809,11 +809,11 @@ function chatt_sub(dt,data,str)
             chatt_lines[i] = chatt_lines[i+1];
             $("txt").innerHTML += chatt_lines[i];
         }
-        chatt_lines[i] = dt+name+str+ "<br>";
+        chatt_lines[i] = dt+name+": "+str+ "<br>";
         $("txt").innerHTML += chatt_lines[i];
     }
     else {
-        chatt_lines[chatt_lines_n] = dt+"<b>"+name+"</b> "+str+ "<br>";
+        chatt_lines[chatt_lines_n] = dt+name+": "+str+ "<br>";
         $("txt").innerHTML += chatt_lines[chatt_lines_n];
         chatt_lines_n++;
     }