diff options
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r-- | src/modules/m_messageflood.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 282a42a3b..681ba616a 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -172,7 +172,7 @@ class ModuleMsgFlood : public Module return 0; } - void ProcessMessages(userrec* user,chanrec* dest,std::string &text) + void ProcessMessages(userrec* user,chanrec* dest, const std::string &text) { if (IS_LOCAL(user)) { @@ -198,7 +198,7 @@ class ModuleMsgFlood : public Module } } - virtual void OnUserMessage(userrec* user, void* dest, int target_type, std::string text, char status) + virtual void OnUserMessage(userrec* user, void* dest, int target_type, const std::string &text, char status) { if (target_type == TYPE_CHANNEL) { @@ -206,7 +206,7 @@ class ModuleMsgFlood : public Module } } - virtual void OnUserNotice(userrec* user, void* dest, int target_type, std::string text, char status) + virtual void OnUserNotice(userrec* user, void* dest, int target_type, const std::string &text, char status) { if (target_type == TYPE_CHANNEL) { |