* ---------------------------------------------------
*/
-#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)
{
}
if (!not_bottler)
{
std::string strgecos = std::string(gecos) + "[Possible bottler, ident: " + std::string(ident) + "]";
- const char* modified[3];
+ const char* modified[4];
modified[0] = "bottler";
modified[1] = local;
modified[2] = remote;
}
};
-
-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)