limit to chat line lenght
[brisk.git] / web / Obj / brisk.phh
index 69a551b..f29b9a7 100644 (file)
@@ -735,6 +735,12 @@ class User {
     while (array_pop($this->comm) != NULL);
     $this->step = 0;
     $this->the_end = FALSE;
+
+    $this->chattime = array_fill(0, CHAT_N, 0);
+    $this->chat_cur = 0;
+    $this->chat_lst = "";
+    $this->chat_ban = 0;
+    $this->chat_dlt = 0;
   }
 } // end class User
 
@@ -1266,7 +1272,7 @@ class Room {
     $only_you = FALSE;
     
     // common settings
-    $msg = substr($mesg,6);
+    $msg = substr($mesg, 6, 128);
     $timecur = time();
     $dt = date("H:i ", $timecur);