diff options
Diffstat (limited to 'src/modules/m_foobar.cpp')
-rw-r--r-- | src/modules/m_foobar.cpp | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/src/modules/m_foobar.cpp b/src/modules/m_foobar.cpp index 0270c1401..49a80a799 100644 --- a/src/modules/m_foobar.cpp +++ b/src/modules/m_foobar.cpp @@ -94,37 +94,5 @@ class ModuleFoobar : public Module }; -// -// The ModuleFoobarFactory class inherits from ModuleFactory -// and creates a ModuleFoobar object when requested. -// - -class ModuleFoobarFactory : public ModuleFactory -{ - public: - ModuleFoobarFactory() - { - } - - ~ModuleFoobarFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleFoobar(Me); - } - -}; - - -// -// The "C" linkage factory0() function creates the ModuleFoobarFactory -// class for this library -// - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleFoobarFactory; -} +MODULE_INIT(ModuleFoobar); |