diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 13:06:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 13:06:49 +0000 |
commit | 017ce3d846b50918251ee900dde7c7d3f5a691b9 (patch) | |
tree | 73fb6c7ffdecd5c258d97a9b422211f50b4a11c3 | |
parent | 84472069ba939536eeb10b442b935eb5c98bf879 (diff) |
First two conversions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7342 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/extra/m_ziplink.cpp | 22 | ||||
-rw-r--r-- | src/modules/m_xmlsocket.cpp | 22 |
2 files changed, 2 insertions, 42 deletions
diff --git a/src/modules/extra/m_ziplink.cpp b/src/modules/extra/m_ziplink.cpp index e0b0afca6..e815d1042 100644 --- a/src/modules/extra/m_ziplink.cpp +++ b/src/modules/extra/m_ziplink.cpp @@ -448,25 +448,5 @@ class ModuleZLib : public Module }; -class ModuleZLibFactory : public ModuleFactory -{ - public: - ModuleZLibFactory() - { - } - - ~ModuleZLibFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleZLib(Me); - } -}; - +MODULE_INIT(ModuleZLib); -extern "C" void * init_module( void ) -{ - return new ModuleZLibFactory; -} diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp index 27c767118..1348fcee7 100644 --- a/src/modules/m_xmlsocket.cpp +++ b/src/modules/m_xmlsocket.cpp @@ -166,25 +166,5 @@ class ModuleXMLSocket : public Module }; -class ModuleXMLSocketFactory : public ModuleFactory -{ - public: - ModuleXMLSocketFactory() - { - } - - ~ModuleXMLSocketFactory() - { - } +MODULE_INIT(ModuleXMLSocket); - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleXMLSocket(Me); - } -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleXMLSocketFactory; -} |