summaryrefslogtreecommitdiff
path: root/src/modules/m_messageflood.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r--src/modules/m_messageflood.cpp23
1 files changed, 4 insertions, 19 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 9e2f2a030..f2c55d584 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -226,25 +226,10 @@ class ModuleMsgFlood : public Module
List[I_On005Numeric] = List[I_OnExtendedMode] = List[I_OnChannelDelete] = List[I_OnUserNotice] = List[I_OnUserMessage] = 1;
}
- virtual void On005Numeric(std::string &output)
- {
- std::stringstream line(output);
- std::string temp1, temp2;
- while (!line.eof())
- {
- line >> temp1;
- if (temp1.substr(0,10) == "CHANMODES=")
- {
- // By doing this we're *assuming* no other module has fucked up the CHANMODES=
- // section of the 005 numeric. If they have, we're going DOWN in a blaze of glory,
- // with a honking great EXCEPTION :)
- temp1.insert(temp1.find(",")+1,"f");
- }
- temp2 = temp2 + temp1 + " ";
- }
- if (temp2.length())
- output = temp2.substr(0,temp2.length()-1);
- }
+ virtual void On005Numeric(std::string &output)
+ {
+ InsertMode(output, "f", 3);
+ }
virtual ~ModuleMsgFlood()
{