aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_restrictmsg.cpp
diff options
context:
space:
mode:
authorGravatar brain2005-12-26 21:14:49 +0000
committerGravatar brain2005-12-26 21:14:49 +0000
commitb9e643261230d3b71517b0bc631c3b306e7246fa (patch)
treeef6912b4891f933b5a061a3a88633b394d0ab774 /src/modules/m_restrictmsg.cpp
parentPorted to new system (diff)
downloadinspircd++-b9e643261230d3b71517b0bc631c3b306e7246fa.tar.gz
inspircd++-b9e643261230d3b71517b0bc631c3b306e7246fa.tar.bz2
inspircd++-b9e643261230d3b71517b0bc631c3b306e7246fa.zip
Converted to 'Implements' system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2666 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_restrictmsg.cpp')
-rw-r--r--src/modules/m_restrictmsg.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp
index 5043b3f8d..4bbca4bdc 100644
--- a/src/modules/m_restrictmsg.cpp
+++ b/src/modules/m_restrictmsg.cpp
@@ -38,6 +38,11 @@ class ModuleRestrictMsg : public Module
Srv = Me;
}
+ void Implements(char* List)
+ {
+ List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = 1;
+ }
+
virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text)
{
if (target_type == TYPE_USER)