Oh another question, does the system have an auto purge setup, so it deletes messages that are older then a certain date? I haven't seen one, but I also haven't picked through all the javascript either. It would be a good idea to add a purge system, where the user can determine how long and often everything is purged. Something like this would work, it run every time the page is refreshed, or even as a cronjob:
Code:
<?php
require_once("./global.php");
$today = date('U', strtotime('-24 hours'));
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "iwt_chatroom_messages WHERE timestamp <= $today");
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "iwt_chat_convos WHERE timestamp <= $today");
?>
Just a suggestion