aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-29 17:38:58 +0100
committerGravatar Sadie Powell2022-10-29 17:38:58 +0100
commit561fe0fe64fb2b152618732613d328d2966d5b65 (patch)
treeef9951634a656941525e49f4bf29a0a53ccf4942 /src/users.cpp
parentMove xline-related typedefs from typedefs to the xline header. (diff)
Clean up the typedefs for OnBuildNeighborList.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp
index f711a4a7d..f72851f19 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -889,8 +889,8 @@ uint64_t User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_sel
// Ask modules to build a list of exceptions.
// Mods may also exclude entire channels by erasing them from include_chans.
- IncludeChanList include_chans(chans.begin(), chans.end());
- std::map<User*, bool> exceptions;
+ User::NeighborList include_chans(chans.begin(), chans.end());
+ User::NeighborExceptions exceptions;
exceptions[this] = include_self;
FOREACH_MOD(OnBuildNeighborList, (this, include_chans, exceptions));
@@ -898,7 +898,7 @@ uint64_t User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_sel
const uint64_t newid = ServerInstance->Users.NextAlreadySentId();
// Handle exceptions first
- for (std::map<User*, bool>::const_iterator i = exceptions.begin(); i != exceptions.end(); ++i)
+ for (NeighborExceptions::const_iterator i = exceptions.begin(); i != exceptions.end(); ++i)
{
LocalUser* curr = IS_LOCAL(i->first);
if (curr)