From 7560655562aafd0a89e65e11c0896337617db2a2 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 28 Mar 2005 01:23:27 +0000 Subject: Fixed using the wrong function, doh, i must need sleep! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@927 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_restrictmsg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3