* ---------------------------------------------------
*/
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
#include "inspircd.h"
#include "wildcard.h"
ConfigReader *Conf;
public:
- ModuleDenyChannels(InspIRCd* Me) : Module::Module(Me)
+ ModuleDenyChannels(InspIRCd* Me) : Module(Me)
{
Conf = new ConfigReader(ServerInstance);
}
};
-// 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" void * init_module( void )
-{
- return new ModuleDenyChannelsFactory;
-}
-
+MODULE_INIT(ModuleDenyChannels)