diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-03-28 01:23:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-03-28 01:23:27 +0000 |
commit | 7560655562aafd0a89e65e11c0896337617db2a2 (patch) | |
tree | 3d1fa37daa27ffeb07e02d9df2b0dfae51af28d0 | |
parent | 0a7af1a331126b96cc723bdc5bcba48721759835 (diff) |
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
-rw-r--r-- | src/modules/m_restrictmsg.cpp | 7 |
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; |