summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 20:32:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 20:32:19 +0000
commit69dee41a1b0a88d8170b8665eb2979915b022aad (patch)
tree4e5664ff43eec1701a7d576cf2a676d630f4b021 /src/modules
parent2f0b2d4656eb1e0a5cfbda54631ebecbb16cfe4d (diff)
Added MakeWildHost to userrec (*!*@dhost)
Added ban stuff to messageflood git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2836 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_messageflood.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index c88c93577..1f07e8155 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -181,6 +181,14 @@ class ModuleMsgFlood : public Module
{
/* Youre outttta here! */
f->clear(user);
+ if (f->ban)
+ {
+ char* parameters[3];
+ parameters[0] = dest->name;
+ parameters[1] = "+b";
+ parameters[2] = user->MakeWildHost();
+ Srv->SendMode(parameters,3,user);
+ }
Srv->KickUser(NULL, user, dest, "Channel flood triggered (mode +f)");
return 1;
}