summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-16 15:44:00 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-16 15:44:00 +0000
commitb07953b0e7da6291914bf417d7290e3ab2a913db (patch)
treecc3d6b5496ee4af8f20820fe879214b9374dbca1
parentb5788187ac28ed86e7b5dbbb8801396729f9e977 (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
-rw-r--r--src/modules/m_antibear.cpp19
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);
}
};