Request voice properties in clientlist

Without -voice the server omits client_input_muted/output_muted and
the hardware flags entirely, so a bare clientlist leaves callers
unable to tell "false" from "not reported" and defaults them wrong.
This commit is contained in:
2026-08-17 08:42:59 +00:00
parent 0e5724b877
commit 49f2ce874d
@@ -1168,6 +1168,13 @@ public class LocalTeamspeakClientSocket
throws IOException, TimeoutException, InterruptedException, CommandException { throws IOException, TimeoutException, InterruptedException, CommandException {
Command command = new SingleCommand("clientlist", ProtocolRole.CLIENT); Command command = new SingleCommand("clientlist", ProtocolRole.CLIENT);
// Without -voice the server omits input/output muted and hardware flags, talk
// power and the rest of the voice-related properties entirely — not "false", just
// absent — so callers reading them from a bare clientlist would see false either way.
CommandOption voice = new CommandOption("voice");
voice.set(true);
command.add(voice);
return executeCommand(command, x -> new Client(x.toMap())).get(); return executeCommand(command, x -> new Client(x.toMap())).get();
} }