]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_antibear.cpp
Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists
[user/henk/code/inspircd.git] / src / modules / m_antibear.cpp
index b6c3d84a0b43c3a5ed03fccc944434e72bab65f3..557d2ca0cf8667d8880a16dfc445f9226a755a4b 100644 (file)
@@ -19,19 +19,18 @@ using namespace std;
 #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()
@@ -50,9 +49,8 @@ class ModuleAntiBear : public Module
        
        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", user->nick);
-               WriteServ(user->fd,"437 %s :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);
        }
 };
 
@@ -67,7 +65,7 @@ class ModuleAntiBearFactory : public ModuleFactory
        {
        }
        
-       virtual Module * CreateModule(Server* Me)
+       virtual Module * CreateModule(InspIRCd* Me)
        {
                return new ModuleAntiBear(Me);
        }
@@ -84,4 +82,3 @@ extern "C" void * init_module( void )
 {
        return new ModuleAntiBearFactory;
 }
-