diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 13:29:37 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 13:29:37 +0000 |
commit | 5b3c052062f0976242b36c82cfeae2ed3b23c6b2 (patch) | |
tree | 2c01073156544d312311932c12dbfa12f87300a3 /src/modules/m_foobar.cpp | |
parent | 8f7870b8131824f4b4587a8e979c1c0ddf70d379 (diff) |
Conversions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7353 e03df62e-2008-0410-955e-edbf42e46eb7
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); |