mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +02:00
never send agents to other agents
This commit is contained in:
parent
0cd70e90c7
commit
1791a1c1fe
1 changed files with 3 additions and 1 deletions
|
@ -950,7 +950,9 @@ void DomainServer::sendDomainListToNode(const SharedNodePointer& node, const Hif
|
|||
if (nodeData->isAuthenticated()) {
|
||||
// if this authenticated node has any interest types, send back those nodes as well
|
||||
limitedNodeList->eachNode([&](const SharedNodePointer& otherNode){
|
||||
if (otherNode->getUUID() != node->getUUID() && nodeInterestSet.contains(otherNode->getType())) {
|
||||
if (otherNode->getUUID() != node->getUUID()
|
||||
&& nodeInterestSet.contains(otherNode->getType())
|
||||
&& (node->getType() != NodeType::Agent || otherNode->getType() != NodeType::Agent)) {
|
||||
|
||||
// since we're about to add a node to the packet we start a segment
|
||||
domainListPackets->startSegment();
|
||||
|
|
Loading…
Reference in a new issue