summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_restrictmsg.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp
index 1fd07422d..9dcd875dc 100644
--- a/src/modules/m_restrictmsg.cpp
+++ b/src/modules/m_restrictmsg.cpp
@@ -34,7 +34,7 @@ class ModuleRestrictMsg : public Module
Srv = new Server;
}
- virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text)
+ virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text)
{
if (target_type == TYPE_USER)
{
@@ -55,6 +55,11 @@ class ModuleRestrictMsg : public Module
return 0;
}
+ virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text)
+ {
+ return this->OnUserPreMessage(user,dest,target_type,text);
+ }
+
virtual ~ModuleRestrictMsg()
{
delete Srv;