summaryrefslogtreecommitdiff
path: root/src/modules/m_messageflood.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 21:05:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 21:05:17 +0000
commit43ea331d1bde92a9f5d7cf0c434e09024cccbb61 (patch)
tree266bfbb080c6a228a5704faea8eb279bfb691926 /src/modules/m_messageflood.cpp
parent537c7d617b9f840c66bef9a9f68b510bc312f997 (diff)
Was using OnUserPre* when i wanted to use OnUser*, which meant that remote servers werent picking up the changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2839 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r--src/modules/m_messageflood.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 660c2128b..bbc4eb043 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -191,28 +191,24 @@ class ModuleMsgFlood : public Module
Srv->SendMode(parameters,3,user);
}
Srv->KickUser(NULL, user, dest, "Channel flood triggered (mode +f)");
- return 1;
}
}
- return 0;
}
- virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text)
- {
+ virtual void OnUserMessage(userrec* user, void* dest, int target_type, std::string text);
+ {
if (target_type == TYPE_CHANNEL)
{
- return ProcessMessages(user,(chanrec*)dest,text);
+ ProcessMessages(user,(chanrec*)dest,text);
}
- else return 0;
}
- virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text)
+ virtual void OnUserNotice(userrec* user, void* dest, int target_type, std::string text)
{
if (target_type == TYPE_CHANNEL)
{
- return ProcessMessages(user,(chanrec*)dest,text);
+ ProcessMessages(user,(chanrec*)dest,text);
}
- else return 0;
}
void OnChannelDelete(chanrec* chan)
@@ -227,7 +223,7 @@ class ModuleMsgFlood : public Module
void Implements(char* List)
{
- List[I_On005Numeric] = List[I_OnExtendedMode] = List[I_OnChannelDelete] = List[I_OnUserPreNotice] = List[I_OnUserPreMessage] = 1;
+ List[I_On005Numeric] = List[I_OnExtendedMode] = List[I_OnChannelDelete] = List[I_OnUserNotice] = List[I_OnUserMessage] = 1;
}
virtual void On005Numeric(std::string &output)