aboutsummaryrefslogtreecommitdiffstats
path: root/mod/chat.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-04 20:30:52 -0700
committerfriendica <info@friendica.com>2014-05-04 20:30:52 -0700
commit806f1f0fa134cc0168c9f86aaf10b8357fc19905 (patch)
tree86b38054156890f4139eaf1c3d53576a10542e2f /mod/chat.php
parent3ae67c517ed8791332fb1ace2a0908209a6d0e0d (diff)
downloadvolse-hubzilla-806f1f0fa134cc0168c9f86aaf10b8357fc19905.tar.gz
volse-hubzilla-806f1f0fa134cc0168c9f86aaf10b8357fc19905.tar.bz2
volse-hubzilla-806f1f0fa134cc0168c9f86aaf10b8357fc19905.zip
UI for deleting chatrooms
Diffstat (limited to 'mod/chat.php')
-rw-r--r--mod/chat.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/chat.php b/mod/chat.php
index bf6eed57c..caf800f80 100644
--- a/mod/chat.php
+++ b/mod/chat.php
@@ -49,6 +49,7 @@ function chat_post(&$a) {
if($_POST['action'] === 'drop') {
+ logger('delete chatroom');
chatroom_destroy($channel,array('cr_name' => $room));
goaway(z_root() . '/chat/' . $channel['channel_address']);
}
@@ -168,12 +169,14 @@ function chat_content(&$a) {
}
$o = replace_macros(get_markup_template('chat.tpl'),array(
+ '$is_owner' => ((local_user() && local_user() == $x[0]['cr_uid']) ? true : false),
'$room_name' => $room_name,
'$room_id' => $room_id,
'$baseurl' => z_root(),
'$nickname' => argv(1),
'$submit' => t('Submit'),
'$leave' => t('Leave Room'),
+ '$drop' => t('Delete This Room'),
'$away' => t('I am away right now'),
'$online' => t('I am online'),
'$bookmark_link' => $bookmark_link,