summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 856addbf5..7e4e0ec68 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -51,14 +51,14 @@ void Event::Send()
// These declarations define the behavours of the base class Module (which does nothing at all)
-Module::Module() : refcount(0) { }
+Module::Module() : refcount(1) { }
CullResult Module::cull()
{
return classbase::cull();
}
Module::~Module()
{
- if (refcount)
+ if (refcount != 1)
ServerInstance->Logs->Log("MODULE", DEFAULT, "References remain to destructed module " + ModuleSourceFile);
}