summaryrefslogtreecommitdiff
path: root/src/modules/m_messageflood.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-06 12:30:47 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-06 12:30:47 +0000
commite2ff1fd474983a17961b5b00ce58b2b77d06192e (patch)
tree5884ad0e280e0853d24cd5eaaf198b7922c44010 /src/modules/m_messageflood.cpp
parent52f102fc86c75c45d7edb8a825c6daa61e42f5ac (diff)
Fix bug #509 reported by Casey: bans were not applied on non-opped users (1.2 only)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9375 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r--src/modules/m_messageflood.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 7122c535b..c2a0b32ec 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -236,7 +236,7 @@ class ModuleMsgFlood : public Module
parameters[0] = dest->name;
parameters[1] = "+b";
parameters[2] = user->MakeWildHost();
- ServerInstance->SendMode(parameters,3,user);
+ ServerInstance->SendMode(parameters, 3, ServerInstance->FakeClient);
ServerInstance->PI->SendModeStr(dest->name, std::string("+b ") + user->MakeWildHost());
}