diff --git a/plugins/other/murmur_ice_users b/plugins/other/murmur_ice_users index f4841e9c..da491184 100755 --- a/plugins/other/murmur_ice_users +++ b/plugins/other/murmur_ice_users @@ -1,31 +1,82 @@ #!/usr/bin/php getConf('users'); if (!$maxusers) $maxusers = $AdefaultConf['users']; $totalMaxUsers += intval($maxusers); - + + $tree = $s->getTree(); + //print_r($tree); $connectedUsers = countConnectedUsers($s->getTree()); $totalConnectedUsers += $connectedUsers; } @@ -116,7 +169,7 @@ function do_count() function countConnectedUsers($channelTree) { - $count = intval($channelTree->players); + $count = intval(count($channelTree->users)); if (isset($channelTree->children)) {