Update class.chat.php