]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sajoin.cpp
Try this
[user/henk/code/inspircd.git] / src / modules / m_sajoin.cpp
index 29abc0ba9347352e53fb8756ff180b164ed8f2e0..75e01704409a2a16e9063e72b771ad857194f23f 100644 (file)
@@ -106,34 +106,9 @@ class ModuleSajoin : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1,1,0,1,VF_VENDOR,API_VERSION);
+               return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
        }
        
 };
 
-// stuff down here is the module-factory stuff. For basic modules you can ignore this.
-
-class ModuleSajoinFactory : public ModuleFactory
-{
- public:
-       ModuleSajoinFactory()
-       {
-       }
-       
-       ~ModuleSajoinFactory()
-       {
-       }
-       
-       virtual Module * CreateModule(InspIRCd* Me)
-       {
-               return new ModuleSajoin(Me);
-       }
-       
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
-       return new ModuleSajoinFactory;
-}
-
+MODULE_INIT(ModuleSajoin)