From cae87fa047bafedc665d07929b47eaa707ff5f42 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 23 Sep 2018 14:19:06 +0100 Subject: Switch all core modules still using COMMAND_INIT to MODULE_INIT. --- include/inspircd.h | 15 --------------- include/modules.h | 2 -- 2 files changed, 17 deletions(-) (limited to 'include') 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 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 return new y; \ } \ extern "C" DllExport const char inspircd_src_version[] = INSPIRCD_VERSION; - -#define COMMAND_INIT(c) MODULE_INIT(CommandModule) -- cgit v1.3.1-10-gc9f91