diff options
| author | 2026-03-15 12:52:55 +0000 | |
|---|---|---|
| committer | 2026-03-15 17:14:40 +0000 | |
| commit | 4c8dd6a6758019b253bf584f62864870de8de999 (patch) | |
| tree | d7f0c6b562c3b589ce0f3c3d8c6765bd0b7aaebe /modules/spanningtree/protocolinterface.cpp | |
| parent | Silence a warning in the string hashing code (for real this time). (diff) | |
Change ServerList to return a list of Server* not a duplicate class.
Diffstat (limited to 'modules/spanningtree/protocolinterface.cpp')
| -rw-r--r-- | modules/spanningtree/protocolinterface.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/modules/spanningtree/protocolinterface.cpp b/modules/spanningtree/protocolinterface.cpp index d0bf57bc8..1b21ad575 100644 --- a/modules/spanningtree/protocolinterface.cpp +++ b/modules/spanningtree/protocolinterface.cpp @@ -35,17 +35,7 @@ void SpanningTreeProtocolInterface::GetServerList(ServerList& sl) { for (const auto& [_, server] : Utils->serverlist) - { - ServerInfo ps; - ps.servername = server->GetName(); - TreeServer* s = server->GetTreeParent(); - ps.parentname = s ? s->GetName() : ""; - ps.usercount = server->UserCount; - ps.opercount = server->OperCount; - ps.description = server->GetDesc(); - ps.latencyms = server->rtt; - sl.push_back(ps); - } + sl.push_back(server); } bool SpanningTreeProtocolInterface::SendEncapsulatedData(const std::string& targetmask, const std::string& cmd, const CommandBase::Params& params, const User* source) |
