aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-01 01:00:26 -0800
committerfriendica <info@friendica.com>2014-02-01 01:00:26 -0800
commit94e59d47705f30cab039c01e2ba2bc079496938e (patch)
tree078f99eabefdb8f68915e500efb5d3078c4ad3ab /mod
parentd14afc0ee442a2ba4013c193fa80917026bb6111 (diff)
downloadvolse-hubzilla-94e59d47705f30cab039c01e2ba2bc079496938e.tar.gz
volse-hubzilla-94e59d47705f30cab039c01e2ba2bc079496938e.tar.bz2
volse-hubzilla-94e59d47705f30cab039c01e2ba2bc079496938e.zip
status indication
Diffstat (limited to 'mod')
-rw-r--r--mod/chatsvc.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/mod/chatsvc.php b/mod/chatsvc.php
index f32ea56ce..0a69834f0 100644
--- a/mod/chatsvc.php
+++ b/mod/chatsvc.php
@@ -85,7 +85,17 @@ function chatsvc_content(&$a) {
);
if($r) {
foreach($r as $rr) {
- $inroom[] = array('img' => zid($rr['xchan_photo_m']), 'img_type' => $rr['xchan_photo_mimetype'],'name' => $rr['xchan_name']);
+ switch($rr['cp_status']) {
+ case 'away':
+ $status = t('Away');
+ break;
+ case 'online':
+ default:
+ $status = t('Online');
+ break;
+ }
+
+ $inroom[] = array('img' => zid($rr['xchan_photo_m']), 'img_type' => $rr['xchan_photo_mimetype'],'name' => $rr['xchan_name'], status => $status);
}
}