* ---------------------------------------------------
*/
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "inspircd.h"
/* $ModDesc: Changes the ident of connecting bottler clients to 'bottler' */
{
public:
ModuleAntiBottler(InspIRCd* Me)
- : Module::Module(Me)
+ : Module(Me)
{
}
}
};
-
-class ModuleAntiBottlerFactory : public ModuleFactory
-{
- public:
- ModuleAntiBottlerFactory()
- {
- }
-
- ~ModuleAntiBottlerFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleAntiBottler(Me);
- }
-
-};
-
-
-extern "C" void * init_module( void )
-{
- return new ModuleAntiBottlerFactory;
-}
-
+MODULE_INIT(ModuleAntiBottler);