From b07953b0e7da6291914bf417d7290e3ab2a913db Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 16 Jul 2006 15:44:00 +0000 Subject: Change to a DIFFERENT HOOK for added goodness. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4417 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_antibear.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/modules') 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); } }; -- cgit v1.2.3