diff options
| author | 2006-02-04 13:09:18 +0000 | |
|---|---|---|
| committer | 2006-02-04 13:09:18 +0000 | |
| commit | 235a0a2035bda6dd214719107083266207f39883 (patch) | |
| tree | ffb6b257f722b9b1e3532d3edaf933e0fdf8f372 /src/modules/m_restrictmsg.cpp | |
| parent | Stop trying to set an empty swhois if the <type> doesn't specify one (diff) | |
| download | inspircd++-235a0a2035bda6dd214719107083266207f39883.tar.gz inspircd++-235a0a2035bda6dd214719107083266207f39883.tar.bz2 inspircd++-235a0a2035bda6dd214719107083266207f39883.zip | |
Added "char status" parameter to OnUserPreNotice and OnUserPreMessage for NOTICE @#chan etc.
Tidied up craq++ in modules (copy and pasting OnUserPreNotice into OnUserPreMessage?! why not just call one from the other!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3072 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_restrictmsg.cpp')
| -rw-r--r-- | src/modules/m_restrictmsg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp index b2e2e60ce..0bc03fab1 100644 --- a/src/modules/m_restrictmsg.cpp +++ b/src/modules/m_restrictmsg.cpp @@ -43,7 +43,7 @@ class ModuleRestrictMsg : public Module List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = 1; } - virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) + virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status) { if (target_type == TYPE_USER) { @@ -64,7 +64,7 @@ class ModuleRestrictMsg : public Module return 0; } - virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) + virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text, char status) { return this->OnUserPreMessage(user,dest,target_type,text); } |
