diff options
author | friendica <info@friendica.com> | 2014-02-02 03:43:52 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-02 03:43:52 -0800 |
commit | e83419b53e27078867f8449f476d87b064b9d502 (patch) | |
tree | d02cdea385de99975d27c43ca555e57942ba2ee5 /mod/chat.php | |
parent | 6b15e57cdbb1b525528f1e67aaa071d0ef4e6e25 (diff) | |
download | volse-hubzilla-e83419b53e27078867f8449f476d87b064b9d502.tar.gz volse-hubzilla-e83419b53e27078867f8449f476d87b064b9d502.tar.bz2 volse-hubzilla-e83419b53e27078867f8449f476d87b064b9d502.zip |
add links to change chat status and leave room
Diffstat (limited to 'mod/chat.php')
-rw-r--r-- | mod/chat.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/chat.php b/mod/chat.php index 612878cb2..e79973aef 100644 --- a/mod/chat.php +++ b/mod/chat.php @@ -91,7 +91,7 @@ function chat_content(&$a) { } if((argc() > 3) && intval(argv(2)) && (argv(3) === 'leave')) { - chatroom_leave($observer,$room_id,$_SERVER['REMOTE_ADDR']); + chatroom_leave($observer,argv(2),$_SERVER['REMOTE_ADDR']); goaway(z_root() . '/channel/' . argv(1)); } @@ -111,7 +111,13 @@ function chat_content(&$a) { $o = replace_macros(get_markup_template('chat.tpl'),array( '$room_name' => $room_name, '$room_id' => $room_id, - '$submit' => t('Submit') + '$baseurl' => z_root(), + '$nickname' => argv(1), + '$submit' => t('Submit'), + '$leave' => t('Leave Room'), + '$away' => t('I am away right now'), + '$online' => t('I am online') + )); return $o; } |