X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_antibear.cpp;h=b6c3d84a0b43c3a5ed03fccc944434e72bab65f3;hb=3a7023f2c595d14778b3f1f7e53d3914698dd500;hp=6977709ecd0868279fd151c2248b831f28a5054b;hpb=93150cc77388df7c04d1f191a29f57b39261603d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_antibear.cpp b/src/modules/m_antibear.cpp index 6977709ec..b6c3d84a0 100644 --- a/src/modules/m_antibear.cpp +++ b/src/modules/m_antibear.cpp @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * + * E-mail: + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -29,8 +29,7 @@ class ModuleAntiBear : public Module Server *Srv; public: - ModuleAntiBear(Server* Me) - : Module::Module(Me) + ModuleAntiBear(Server* Me) : Module::Module(Me) { Srv = Me; } @@ -46,14 +45,14 @@ class ModuleAntiBear : public Module void Implements(char* List) { - List[I_OnUserConnect] = 1; + List[I_OnUserRegister] = 1; } - virtual void OnUserConnect(userrec* user) + virtual void OnUserRegister(userrec* user) { WriteServ(user->fd,"439 %s :This server has anti-spambot mechanisms enabled.", user->nick); - WriteServ(user->fd,"931 %s :Spambots, trojans, and malicious botnets are", user->nick); - WriteServ(user->fd,"437 %s :NOT WELCOME HERE. Please take your war elsewhere.", 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); } };