diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-21 23:22:04 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-21 23:22:04 +0000 |
commit | 06fd57cc35c9d5869ca3a24d349b791963b2acc4 (patch) | |
tree | 14a968c830b6941dd766e9d3ddd71435e82e9e24 /src/modules/m_antibear.cpp | |
parent | 97cf2d2384e255d8e77af7b70fdc057461b83c38 (diff) |
fix for bug #175, change OnUserRegister to return int, and if greater than 0 = user was quit and stop propagating to rest of loaded modules. Also bumb the module API version.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5783 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_antibear.cpp')
-rw-r--r-- | src/modules/m_antibear.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_antibear.cpp b/src/modules/m_antibear.cpp index 513f357f9..0f67915ef 100644 --- a/src/modules/m_antibear.cpp +++ b/src/modules/m_antibear.cpp @@ -47,10 +47,11 @@ class ModuleAntiBear : public Module List[I_OnUserRegister] = 1; } - virtual void OnUserRegister(userrec* user) + virtual int OnUserRegister(userrec* user) { user->WriteServ("439 %s :This server has anti-spambot mechanisms enabled.", user->nick); user->WriteServ("931 %s :Malicious bots, spammers, and other automated systems of dubious origin are NOT welcome here.", user->nick); + return 0; } }; |