diff --git a/main.php b/main.php index c3d6ae8..83b2b61 100644 --- a/main.php +++ b/main.php @@ -8,6 +8,8 @@ $server = TeamSpeak3::factory('serverquery://'.$user.':'.$passwd.'@'.$host.':'.$ $exceptions = array_unique(array_merge($exceptions, $roots)); while(true) { + // get fresh channel list, because total_clients is cached + $server->channelListReset(); foreach($roots as $root) { $root = $server->channelGetByName($root); $subs = $root->subChannelList();