aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-08-01 19:42:57 +0100
committerGravatar Sadie Powell2021-08-01 20:14:47 +0100
commita7301475860b513d96bb136b18843591cedef4dc (patch)
tree32298f02f98577d9ae7a9d3d958832b139f4eb56 /src/users.cpp
parentMerge branch 'insp3' into master. (diff)
parentRemove the root checks from the helper script. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index cb5e4e4ab..8641c0d45 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -887,7 +887,7 @@ void User::WriteCommonRaw(ClientProtocol::Event& protoev, bool include_self)
ForEachNeighbor(handler, include_self);
}
-void User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self)
+uint64_t User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self)
{
// The basic logic for visiting the neighbors of a user is to iterate the channel list of the user
// and visit all users on those channels. Because two users may share more than one common channel,
@@ -936,6 +936,8 @@ void User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self)
}
}
}
+
+ return newid;
}
void User::WriteRemoteNumeric(const Numeric::Numeric& numeric)