From 0fa365373eb9110a05ee4be5c36c9757c30f1a25 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Fri, 5 Apr 2013 18:23:44 +0200 Subject: Don't attempt to unload or reload modules that are waiting to be unloaded --- include/modules.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index e450233da..8aedaabdd 100644 --- a/include/modules.h +++ b/include/modules.h @@ -116,7 +116,7 @@ struct ModResult { * and numerical comparisons in preprocessor macros if they wish to support * multiple versions of InspIRCd in one file. */ -#define INSPIRCD_VERSION_API 4 +#define INSPIRCD_VERSION_API 5 /** * This #define allows us to call a method in all @@ -357,6 +357,11 @@ class CoreExport Module : public classbase, public usecountbase */ DLLManager* ModuleDLLManager; + /** If true, this module will be unloaded soon, further unload attempts will fail + * Value is used by the ModuleManager internally, you should not modify it + */ + bool dying; + /** Default constructor. * Creates a module class. Don't do any type of hook registration or checks * for other modules here; do that in init(). -- cgit v1.3.1-10-gc9f91