From 84472069ba939536eeb10b442b935eb5c98bf879 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 17 Jun 2007 13:04:25 +0000 Subject: Module factory and init function in modules turned into a neat macro: INIT_MODULE(MyModuleClassName); Get cracking, w00t :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7341 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_testcommand.cpp | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'src/modules/m_testcommand.cpp') diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp index a32559c68..c0fe10291 100644 --- a/src/modules/m_testcommand.cpp +++ b/src/modules/m_testcommand.cpp @@ -102,28 +102,4 @@ class ModuleTestCommand : public Module } }; - -class ModuleTestCommandFactory : public ModuleFactory -{ - public: - ModuleTestCommandFactory() - { - } - - ~ModuleTestCommandFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleTestCommand(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleTestCommandFactory; -} - +MODULE_INIT(ModuleTestCommand); -- cgit v1.3.1-10-gc9f91