diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 15:44:00 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 15:44:00 +0000 |
commit | b07953b0e7da6291914bf417d7290e3ab2a913db (patch) | |
tree | cc3d6b5496ee4af8f20820fe879214b9374dbca1 /src/modules | |
parent | b5788187ac28ed86e7b5dbbb8801396729f9e977 (diff) |
Change to a DIFFERENT HOOK for added goodness.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4417 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_antibear.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
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: - * <brain@chatspike.net> - * <Craig@chatspike.net> + * E-mail: + * <brain@chatspike.net> + * <Craig@chatspike.net> * * 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); } }; |