From 8e68ecc68bb84f9fa1f69ff4584982a7dc810462 Mon Sep 17 00:00:00 2001 From: marijus Date: Wed, 12 Feb 2014 23:41:08 +0100 Subject: dont show onlinestatus if block_public is on --- include/identity.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/identity.php b/include/identity.php index 0e01b4a0d..12eeb47ac 100644 --- a/include/identity.php +++ b/include/identity.php @@ -1154,6 +1154,9 @@ function is_member($s) { function get_online_status($nick) { + if(get_config('system','block_public') && ! local_user() && ! remote_user()) + return; + $ret = array('result' => false); $r = q("select channel_id, channel_hash from channel where channel_address = '%s' limit 1", -- cgit v1.2.3