From 561fe0fe64fb2b152618732613d328d2966d5b65 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 29 Oct 2022 17:38:58 +0100 Subject: Clean up the typedefs for OnBuildNeighborList. --- src/users.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/users.cpp') 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 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::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) -- cgit v1.3.1-10-gc9f91