mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Update m_antibear to use a different hook for ADDED goodness.
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4415 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
399e250e97
commit
61b76b8b67
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user