Fixed server group client list
This commit is contained in:
@@ -578,11 +578,14 @@ command_result ConnectedClient::handleCommandServerGroupClientList(Command &cmd)
|
||||
notify["sgid"] = cmd["sgid"].as<GroupId>();
|
||||
int index = 0;
|
||||
for (const auto &clientEntry : groupManager->listGroupMembers(serverGroup)) {
|
||||
notify[index]["cldbid"] = clientEntry->cldbId;
|
||||
notify[index]["client_nickname"] = clientEntry->displayName;
|
||||
notify[index]["client_unique_identifier"] = clientEntry->uid;
|
||||
notify[index]["cldbid"] = clientEntry.cldbId;
|
||||
notify[index]["client_nickname"] = clientEntry.displayName;
|
||||
notify[index]["client_unique_identifier"] = clientEntry.uid;
|
||||
index++;
|
||||
}
|
||||
if(index == 0)
|
||||
return ts::command_result{error::database_empty_result};
|
||||
|
||||
this->sendCommand(notify);
|
||||
return command_result{error::ok};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user