aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-03-02 05:39:12 +0000
committerGravatar Sadie Powell2021-03-02 05:56:56 +0000
commit4e488cb54d72fb4a1caa580f6756a6f4687beaf6 (patch)
treeae74c5dc12685a23ede19a299753aed30c336960 /src/users.cpp
parentMove aligned_storage to the utility directory and clean up. (diff)
downloadinspircd++-4e488cb54d72fb4a1caa580f6756a6f4687beaf6.tar.gz
inspircd++-4e488cb54d72fb4a1caa580f6756a6f4687beaf6.tar.bz2
inspircd++-4e488cb54d72fb4a1caa580f6756a6f4687beaf6.zip
Refactor classbase/CullResult into Cullable/Cullable::Result.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/users.cpp b/src/users.cpp
index bd99c234d..3198ab0b0 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -348,7 +348,7 @@ void UserIOHandler::OnError(BufferedSocketError sockerr)
ServerInstance->Users.QuitUser(user, GetError());
}
-CullResult User::cull()
+Cullable::Result User::Cull()
{
if (!quitting)
ServerInstance->Users.QuitUser(this, "Culled without QuitUser");
@@ -359,21 +359,21 @@ CullResult User::cull()
if (server->IsService())
stdalgo::erase(ServerInstance->Users.all_services, this);
- return Extensible::cull();
+ return Extensible::Cull();
}
-CullResult LocalUser::cull()
+Cullable::Result LocalUser::Cull()
{
- eh.cull();
- return User::cull();
+ eh.Cull();
+ return User::Cull();
}
-CullResult FakeUser::cull()
+Cullable::Result FakeUser::Cull()
{
// Fake users don't quit, they just get culled.
quitting = true;
// Fake users are not inserted into UserManager::clientlist or uuidlist, so we don't need to modify those here
- return User::cull();
+ return User::Cull();
}
void User::Oper(std::shared_ptr<OperInfo> info)