Skip to content

Commit

Permalink
Update m_antibear to use a different hook for ADDED goodness.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4415 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
rburchell committed Jul 16, 2006
1 parent 399e250 commit 61b76b8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/modules/m_antibear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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);
}
};

Expand Down

0 comments on commit 61b76b8

Please sign in to comment.