From cafe18b10ef84bbe6730ea587b5e2cadfe5ce2e5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 12 Jun 2023 01:06:24 +0100 Subject: Log when encountering an erroneous user cull without a quit. --- src/users.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/users.cpp') 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); -- cgit v1.3.1-10-gc9f91