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)
return new y; \
} \
extern "C" DllExport const char inspircd_src_version[] = INSPIRCD_VERSION;
-
-#define COMMAND_INIT(c) MODULE_INIT(CommandModule<c>)
return CMD_SUCCESS;
}
+class CoreModIson : public Module
+{
+ private:
+ CommandIson cmd;
+
+ public:
+ CoreModIson()
+ : cmd(this)
+ {
+ }
+
+ Version GetVersion() CXX11_OVERRIDE
+ {
+ return Version("Provides the ISON command", VF_CORE | VF_VENDOR);
+ }
+};
-COMMAND_INIT(CommandIson)
+MODULE_INIT(CoreModIson)
}
}
-COMMAND_INIT(CommandReloadmodule)
+class CoreModReloadmodule : public Module
+{
+ private:
+ CommandReloadmodule cmd;
+
+ public:
+ CoreModReloadmodule()
+ : cmd(this)
+ {
+ }
+
+ Version GetVersion() CXX11_OVERRIDE
+ {
+ return Version("Provides the RELOADMODULE command", VF_CORE | VF_VENDOR);
+ }
+};
+
+MODULE_INIT(CoreModReloadmodule)
return CMD_SUCCESS;
}
-COMMAND_INIT(CommandStats)
+class CoreModStats : public Module
+{
+ private:
+ CommandStats cmd;
+
+ public:
+ CoreModStats()
+ : cmd(this)
+ {
+ }
+
+ Version GetVersion() CXX11_OVERRIDE
+ {
+ return Version("Provides the STATS command", VF_CORE | VF_VENDOR);
+ }
+};
+
+MODULE_INIT(CoreModStats)
return CMD_SUCCESS;
}
-COMMAND_INIT(CommandUserhost)
+class CoreModUserhost : public Module
+{
+ private:
+ CommandUserhost cmd;
+
+ public:
+ CoreModUserhost()
+ : cmd(this)
+ {
+ }
+
+ Version GetVersion() CXX11_OVERRIDE
+ {
+ return Version("Provides the USERHOST command", VF_CORE | VF_VENDOR);
+ }
+};
+
+MODULE_INIT(CoreModUserhost)
return CMD_SUCCESS;
}
-COMMAND_INIT(CommandWallops)
+class CoreModWallops : public Module
+{
+ private:
+ CommandWallops cmd;
+
+ public:
+ CoreModWallops()
+ : cmd(this)
+ {
+ }
+
+ Version GetVersion() CXX11_OVERRIDE
+ {
+ return Version("Provides the WALLOPS command", VF_CORE | VF_VENDOR);
+ }
+};
+
+MODULE_INIT(CoreModWallops)