aboutsummaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-12-08 17:38:47 +0000
committerGravatar Sadie Powell2019-12-08 17:47:07 +0000
commit034dad6ab0df48172a70de70a9d0de4a9092112e (patch)
tree0e852f3554dbce37d8e2e360fa099148155e8cab /src/base.cpp
parentMove the nationalchars locale files to the docs directory. (diff)
parentClean up the initialisation of the InspIRCd class. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 71a17b6df..cab4c5fe6 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -29,26 +29,27 @@
classbase::classbase()
{
+#ifdef INSPIRCD_ENABLE_RTTI
if (ServerInstance)
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::+ @%p", (void*)this);
+ ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::+%s @%p", typeid(*this).name(), (void*)this);
+#endif
}
CullResult classbase::cull()
{
- if (ServerInstance)
#ifdef INSPIRCD_ENABLE_RTTI
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::-%s @%p",
- typeid(*this).name(), (void*)this);
-#else
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::- @%p", (void*)this);
+ if (ServerInstance)
+ ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::-%s @%p", typeid(*this).name(), (void*)this);
#endif
return CullResult();
}
classbase::~classbase()
{
+#ifdef INSPIRCD_ENABLE_RTTI
if (ServerInstance)
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::~ @%p", (void*)this);
+ ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::~%s @%p", typeid(*this).name(), (void*)this);
+#endif
}
CullResult::CullResult()