aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-06-12 01:06:24 +0100
committerGravatar Sadie Powell2023-06-12 01:39:47 +0100
commitcafe18b10ef84bbe6730ea587b5e2cadfe5ce2e5 (patch)
treef55a9876ecb6c347f95f5b62d39a297cdb809af4 /src/users.cpp
parentThe standard-replies cap has been adopted by IRCv3 now. (diff)
Log when encountering an erroneous user cull without a quit.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index d50b679ac..220060275 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -336,7 +336,11 @@ void UserIOHandler::OnError(BufferedSocketError sockerr)
Cullable::Result User::Cull()
{
if (!quitting)
+ {
+ ServerInstance->Logs.Debug("CULLLIST", "BUG: User {} (@{}) was culled without being quit first!",
+ uuid, fmt::ptr(this));
ServerInstance->Users.QuitUser(this, "Culled without QuitUser");
+ }
if (client_sa.family() != AF_UNSPEC)
ServerInstance->Users.RemoveCloneCounts(this);