From 6d6805f0cb831873cc3832e275f7b169e2e95b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=E9veil?= Date: Thu, 13 Jan 2011 20:08:31 +0100 Subject: [PATCH] now works with murmur v1.2.2 --- plugins/other/murmur_ice_users | 79 ++++++++++++++++++++++++++++------ 1 file changed, 66 insertions(+), 13 deletions(-) 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)) {