aboutsummaryrefslogtreecommitdiffstats
path: root/include/chat.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/chat.php')
-rw-r--r--include/chat.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/chat.php b/include/chat.php
index 8e84d9be0..4c79319ee 100644
--- a/include/chat.php
+++ b/include/chat.php
@@ -84,6 +84,9 @@ function chatroom_destroy($channel,$arr) {
q("delete from chatpresence where cp_room = %d",
intval($r[0]['cr_id'])
);
+ q("delete from chat where chat_room = %d",
+ intval($r[0]['cr_id'])
+ );
}
$ret['success'] = true;
return $ret;