}
};
-class ModuleDCCAllowFactory : public ModuleFactory
-{
- public:
- ModuleDCCAllowFactory()
- {
- }
-
- ~ModuleDCCAllowFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleDCCAllow(Me);
- }
-
-};
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleDCCAllowFactory;
-}
+MODULE_INIT(ModuleDCCAllow);
};
-
-class ModuleDeafFactory : public ModuleFactory
-{
- public:
- ModuleDeafFactory()
- {
- }
-
- ~ModuleDeafFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleDeaf(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleDeafFactory;
-}
-
+MODULE_INIT(ModuleDeaf);
}
};
-// stuff down here is the module-factory stuff. For basic modules you can ignore this.
-
-class ModuleDenyChannelsFactory : public ModuleFactory
-{
- public:
- ModuleDenyChannelsFactory()
- {
- }
-
- ~ModuleDenyChannelsFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleDenyChannels(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleDenyChannelsFactory;
-}
-
+MODULE_INIT(ModuleDenyChannels);
}
};
-
-class ModuleDeVoiceFactory : public ModuleFactory
-{
- public:
- ModuleDeVoiceFactory()
- {
- }
-
- ~ModuleDeVoiceFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleDeVoice(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleDeVoiceFactory;
-}
+MODULE_INIT(ModuleDeVoice);
}
};
-// stuff down here is the module-factory stuff.
-
-class ModuleDNSBLFactory : public ModuleFactory
-{
- public:
- ModuleDNSBLFactory()
- {
- }
-
- ~ModuleDNSBLFactory()
- {
- }
-
- virtual Module *CreateModule(InspIRCd *Me)
- {
- return new ModuleDNSBL(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleDNSBLFactory;
-}
+MODULE_INIT(ModuleDNSBL);