From e93f3889d2b093ef2d31dc7ee7070c9275ebd4c1 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 17 May 2022 16:47:21 +0100 Subject: Print the typeid of a doubly culled type in CullList::Apply(). --- src/cull.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/cull.cpp b/src/cull.cpp index 4990aaf62..c9ed4e474 100644 --- a/src/cull.cpp +++ b/src/cull.cpp @@ -96,8 +96,13 @@ void CullList::Apply() } else { +#ifdef INSPIRCD_ENABLE_RTTI + ServerInstance->Logs.Debug("CULLLIST", "WARNING: Object %s @%p culled twice!", + typeid(*c).name(), static_cast(c)); +#else ServerInstance->Logs.Debug("CULLLIST", "WARNING: Object @%p culled twice!", static_cast(c)); +#endif } } list.clear(); -- cgit v1.3.1-10-gc9f91