diff options
| author | 2024-10-10 15:03:21 +0100 | |
|---|---|---|
| committer | 2024-10-10 15:03:21 +0100 | |
| commit | ca6ccac8b0eb3ccb6d7eb77aad6fb40065515308 (patch) | |
| tree | 791381c5bdaa2b7d3cb657b6bf5ffc1fe2dc18e8 /src/usermanager.cpp | |
| parent | Silently do nothing if a module zaps all of the tags on a TAGMSG. (diff) | |
| parent | When a server stops being ulined remove its users from the uline list. (diff) | |
Merge branch 'insp3' into insp4.
Diffstat (limited to 'src/usermanager.cpp')
| -rw-r--r-- | src/usermanager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 9e5e55467..26ec95774 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -350,6 +350,17 @@ void UserManager::RehashCloneCounts() AddClone(u); } +void UserManager::RehashServices() +{ + UserManager::ServiceList newservices; + for (const auto& [_, user] : ServerInstance->Users.GetUsers()) + { + if (user->server->IsService()) + newservices.push_back(user); + } + std::swap(ServerInstance->Users.all_services, newservices); +} + const UserManager::CloneCounts& UserManager::GetCloneCounts(User* user) const { CloneMap::const_iterator it = clonemap.find(user->GetCIDRMask()); |
