diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-04-05 18:23:44 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-05 18:23:44 +0200 |
commit | 0fa365373eb9110a05ee4be5c36c9757c30f1a25 (patch) | |
tree | 54bb2e558a5bb8f2416e32977db6b767d7eb6f84 /include/modules.h | |
parent | 08a566b5d7f4a9c1bafd4bf74d2a05ed8010d6b6 (diff) |
Don't attempt to unload or reload modules that are waiting to be unloaded
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 7 |
1 files changed, 6 insertions, 1 deletions
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(). |