summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 20:11:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 20:11:12 +0000
commitbb0d5b432568ff5fccb6bc734b1576b90280c722 (patch)
tree9621d5f731ee4fcae26590e67a98f5d8e28ac7cf
parent90a6d63b2060a232e37d9fcfbdbb0fca6fa313d5 (diff)
Add stuff for propogating mode out on +f * ban
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4247 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_messageflood.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index c2fbe671f..04f9766d5 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -199,6 +199,18 @@ class ModuleMsgFlood : public Module
parameters[1] = "+b";
parameters[2] = user->MakeWildHost();
Srv->SendMode(parameters,3,user);
+ std::deque<std::string> n;
+ /* Propogate the ban to other servers.
+ * We dont know what protocol we may be using,
+ * so this event is picked up by our protocol
+ * module and formed into a ban command that
+ * suits the protocol in use.
+ */
+ n.push_back(dest->name);
+ n.push_back("+b");
+ n.push_back(user->MakeWildHost());
+ Event rmode((char *)&n, NULL, "send_mode");
+ rmode.Send();
}
Srv->KickUser(NULL, user, dest, "Channel flood triggered (mode +f)");
}