mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Call OnRouteMessage on all servers not just directly connected ones.
This commit is contained in:
parent
91bcc80d29
commit
ef572e3c1f
@ -167,11 +167,11 @@ void SpanningTreeUtilities::GetListOfServersForChannel(const Channel* c, TreeSoc
|
||||
|
||||
// Check whether the servers which do not have users in the channel might need this message. This
|
||||
// is used to keep the chanhistory module synchronised between servers.
|
||||
for (const auto* child : children)
|
||||
for (const auto &[_, server] : Utils->serverlist)
|
||||
{
|
||||
ModResult result = Creator->routeeventprov.FirstResult(&ServerProtocol::RouteEventListener::OnRouteMessage, c, child);
|
||||
ModResult result = Creator->routeeventprov.FirstResult(&ServerProtocol::RouteEventListener::OnRouteMessage, c, server);
|
||||
if (result == MOD_RES_ALLOW)
|
||||
list.insert(child->GetSocket());
|
||||
list.insert(server->GetRoute()->GetSocket());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user