diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 13:04:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 13:04:25 +0000 |
commit | 84472069ba939536eeb10b442b935eb5c98bf879 (patch) | |
tree | e51e367ea6a1fa79f208ea672df556699aeb3b63 /src/modules/m_alias.cpp | |
parent | c51f67a37c8ae72aa2d5a7b9b837e24df78ebaa1 (diff) |
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
Diffstat (limited to 'src/modules/m_alias.cpp')
-rw-r--r-- | src/modules/m_alias.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 15a2928ee..1e117fb3d 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -269,27 +269,5 @@ class ModuleAlias : public Module } }; - -class ModuleAliasFactory : public ModuleFactory -{ - public: - ModuleAliasFactory() - { - } - - ~ModuleAliasFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleAlias(Me); - } -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleAliasFactory; -} +MODULE_INIT(ModuleAlias); |