dont show onlinestatus if block_public is on

This commit is contained in:
marijus 2014-02-12 23:41:08 +01:00
parent 1ca85abf83
commit 8e68ecc68b

View File

@ -1154,6 +1154,9 @@ function is_member($s) {
function get_online_status($nick) { function get_online_status($nick) {
if(get_config('system','block_public') && ! local_user() && ! remote_user())
return;
$ret = array('result' => false); $ret = array('result' => false);
$r = q("select channel_id, channel_hash from channel where channel_address = '%s' limit 1", $r = q("select channel_id, channel_hash from channel where channel_address = '%s' limit 1",