From 05485be9f0ff3194ace46efaf156dd30441f29df Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 5 Feb 2019 00:00:56 +0000 Subject: Module: Initialise 'ModuleDLLManager' and 'dying' correctly. --- src/modulemanager.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/modulemanager.cpp') diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index eb40c5971..86edd572f 100644 --- 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()) -- cgit v1.3.1-10-gc9f91 From 104ae6871862857787ddbd1e9748adfc9550312b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 5 Feb 2019 00:06:03 +0000 Subject: ModuleManager: use std::flush instead of fflush(stdout). --- src/modulemanager.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modulemanager.cpp') diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 86edd572f..5ed7d12d5 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -126,8 +126,7 @@ bool ModuleManager::Load(const std::string& modname, bool defer) /* We must load the modules AFTER initializing the socket engine, now */ void ModuleManager::LoadCoreModules(std::map& servicemap) { - std::cout << std::endl << "Loading core commands"; - fflush(stdout); + std::cout << std::endl << "Loading core commands" << std::flush; DIR* library = opendir(ServerInstance->Config->Paths.Module.c_str()); if (library) @@ -137,8 +136,7 @@ void ModuleManager::LoadCoreModules(std::map& servicem { if (InspIRCd::Match(entry->d_name, "core_*.so", ascii_case_insensitive_map)) { - std::cout << "."; - fflush(stdout); + std::cout << "." << std::flush; this->NewServices = &servicemap[entry->d_name]; -- cgit v1.3.1-10-gc9f91