diff options
| author | 2018-09-23 14:19:06 +0100 | |
|---|---|---|
| committer | 2018-09-23 14:19:06 +0100 | |
| commit | cae87fa047bafedc665d07929b47eaa707ff5f42 (patch) | |
| tree | c03f926496ac49d01efff18b662ca5ccac6645c2 /include | |
| parent | Don't sync xlines defined in the config and expire them on rehash. (diff) | |
| download | inspircd++-cae87fa047bafedc665d07929b47eaa707ff5f42.tar.gz inspircd++-cae87fa047bafedc665d07929b47eaa707ff5f42.tar.bz2 inspircd++-cae87fa047bafedc665d07929b47eaa707ff5f42.zip | |
Switch all core modules still using COMMAND_INIT to MODULE_INIT.
Diffstat (limited to 'include')
| -rw-r--r-- | include/inspircd.h | 15 | ||||
| -rw-r--r-- | include/modules.h | 2 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 90ee6ca8d..934f2f82b 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -574,21 +574,6 @@ class CoreExport InspIRCd ENTRYPOINT; -template<class Cmd> -class CommandModule : public Module -{ - Cmd cmd; - public: - CommandModule() : cmd(this) - { - } - - Version GetVersion() CXX11_OVERRIDE - { - return Version(cmd.name, VF_VENDOR|VF_CORE); - } -}; - inline void stdalgo::culldeleter::operator()(classbase* item) { if (item) diff --git a/include/modules.h b/include/modules.h index db0bc341e..43ab2ae3a 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1186,5 +1186,3 @@ class CoreExport ModuleManager : public fakederef<ModuleManager> return new y; \ } \ extern "C" DllExport const char inspircd_src_version[] = INSPIRCD_VERSION; - -#define COMMAND_INIT(c) MODULE_INIT(CommandModule<c>) |
