inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 05485be9f0ff3194ace46efaf156dd30441f29df
parent 8d87fa3837d26f11b1233badbe7ec540d38a686b
Author: Peter Powell <petpow@saberuk.com>
Date:   Tue,  5 Feb 2019 00:00:56 +0000

Module: Initialise 'ModuleDLLManager' and 'dying' correctly.

Diffstat:
Msrc/modulemanager.cpp | 1-
Msrc/modules.cpp | 8+++++++-
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp @@ -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()) diff --git a/src/modules.cpp b/src/modules.cpp @@ -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() { }