#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "helperfuncs.h"
+
/* $ModDesc: Sends a numeric on connect which cripples a common type of trojan/spambot */
class ModuleAntiBear : public Module
{
private:
-
- Server *Srv;
+
public:
- ModuleAntiBear(Server* Me) : Module::Module(Me)
+ ModuleAntiBear(InspIRCd* Me) : Module::Module(Me)
{
- Srv = Me;
+
}
virtual ~ModuleAntiBear()
virtual Version GetVersion()
{
- return Version(1,0,0,0,VF_VENDOR);
+ return Version(1,1,0,0,VF_VENDOR,API_VERSION);
}
void Implements(char* List)
virtual void OnUserRegister(userrec* user)
{
- WriteServ(user->fd,"439 %s :This server has anti-spambot mechanisms enabled.", user->nick);
- WriteServ(user->fd,"931 %s :Malicious bots, spammers, and other automated systems of dubious origin are NOT welcome here.", user->nick);
+ user->WriteServ("439 %s :This server has anti-spambot mechanisms enabled.", user->nick);
+ user->WriteServ("931 %s :Malicious bots, spammers, and other automated systems of dubious origin are NOT welcome here.", user->nick);
}
};
{
}
- virtual Module * CreateModule(Server* Me)
+ virtual Module * CreateModule(InspIRCd* Me)
{
return new ModuleAntiBear(Me);
}