From 1d2797dc1fb51311e2f566ae792ee1dbb03c315c Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 17 Oct 2015 14:54:27 -0700 Subject: bring back chat expiration setting and adjust chat size for our now smaller content region --- mod/chat.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/chat.php') diff --git a/mod/chat.php b/mod/chat.php index ef9089b6f..79a5c050b 100644 --- a/mod/chat.php +++ b/mod/chat.php @@ -59,6 +59,9 @@ function chat_post(&$a) { $arr = $acl->get(); $arr['name'] = $room; + $arr['expire'] = intval($_POST['chat_expire']); + if(intval($arr['expire']) < 0) + $arr['expire'] = 0; chatroom_create($channel,$arr); @@ -204,6 +207,7 @@ function chat_content(&$a) { $o = replace_macros(get_markup_template('chatroom_new.tpl'),array( '$header' => t('New Chatroom'), '$name' => array('room_name',t('Chatroom Name'),'', ''), + '$chat_expire' => array('chat_expire',t('Expiration of chats (minutes)'),120,''), '$permissions' => t('Permissions'), '$acl' => populate_acl($channel_acl,false), '$submit' => t('Submit') -- cgit v1.2.3