mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Module: Initialise 'ModuleDLLManager' and 'dying' correctly.
This commit is contained in:
parent
8d87fa3837
commit
05485be9f0
@ -66,7 +66,6 @@ bool ModuleManager::Load(const std::string& modname, bool defer)
|
||||
{
|
||||
newmod->ModuleSourceFile = filename;
|
||||
newmod->ModuleDLLManager = newhandle;
|
||||
newmod->dying = false;
|
||||
Modules[filename] = newmod;
|
||||
std::string version = newhandle->GetVersion();
|
||||
if (version.empty())
|
||||
|
@ -54,11 +54,17 @@ Version::Version(const std::string &desc, int flags, const std::string& linkdata
|
||||
|
||||
// These declarations define the behavours of the base class Module (which does nothing at all)
|
||||
|
||||
Module::Module() { }
|
||||
Module::Module()
|
||||
: ModuleDLLManager(NULL)
|
||||
, dying(false)
|
||||
{
|
||||
}
|
||||
|
||||
CullResult Module::cull()
|
||||
{
|
||||
return classbase::cull();
|
||||
}
|
||||
|
||||
Module::~Module()
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user