summaryrefslogtreecommitdiff
path: root/src/cull_list.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-23 15:59:35 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-23 15:59:35 +0100
commitb705c6426818ba8cedfd00d1a84dab8ff0d0f1a0 (patch)
treee4f403e4ec56ed55c98e65dfb22a9f4c94531508 /src/cull_list.cpp
parent9add848772555f527b625953cb45c46850ac1274 (diff)
parent365e2b45f871d80debb135b0f26766538d10809d (diff)
Merge branch 'master+no-rtti'
Diffstat (limited to 'src/cull_list.cpp')
-rw-r--r--src/cull_list.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cull_list.cpp b/src/cull_list.cpp
index 5cbe3aef3..73f2def51 100644
--- a/src/cull_list.cpp
+++ b/src/cull_list.cpp
@@ -21,7 +21,9 @@
#include "inspircd.h"
+#ifdef INSPIRCD_ENABLE_RTTI
#include <typeinfo>
+#endif
void CullList::Apply()
{
@@ -46,8 +48,12 @@ void CullList::Apply()
classbase* c = list[i];
if (gone.insert(c).second)
{
+#ifdef INSPIRCD_ENABLE_RTTI
ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "Deleting %s @%p", typeid(*c).name(),
(void*)c);
+#else
+ ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "Deleting @%p", (void*)c);
+#endif
c->cull();
queue.push_back(c);
}