tickbut: add classes
[brisk.git] / web / Obj / brisk.phh
index 69a551b..412542a 100644 (file)
@@ -734,6 +734,11 @@ class User {
     $this->name = "";
     while (array_pop($this->comm) != NULL);
     $this->step = 0;
+    $this->chattime = array_fill(0, CHAT_N, 0);
+    $this->chat_cur = 0;
+    $this->chat_lst = "";
+    $this->chat_ban = 0;
+    $this->chat_dlt = 0;
     $this->the_end = FALSE;
   }
 } // end class User
@@ -1266,7 +1271,7 @@ class Room {
     $only_you = FALSE;
     
     // common settings
-    $msg = substr($mesg,6);
+    $msg = substr($mesg, 6, 128);
     $timecur = time();
     $dt = date("H:i ", $timecur);
 
@@ -1392,7 +1397,9 @@ class Room {
       }
       else {
         $to_user = sprintf('chatt_sub("%s","%s");', $dt.xcape($user->name), xcape($msg));
-        $to_room = $to_user;
+       // temporary silentiation for troll (will became array check)
+       if (strcasecmp($user->name,'JackRokka') != 0 && $user->sess != '47ea653f602e8')
+           $to_room = $to_user;
       }
 
       log_legal($timecur, $user->sess, $user->name,