diff options
| author | 2006-09-02 16:02:35 +0000 | |
|---|---|---|
| committer | 2006-09-02 16:02:35 +0000 | |
| commit | 40e990ed06126c1ba6164738527127d1f58fc032 (patch) | |
| tree | 0c1c0c2893064ffa2163421d5891b91f7002fbe1 /src/modules/m_censor.cpp | |
| parent | Any modules which were using VF_STATIC to indicate they implement a mode shou... (diff) | |
All modules which implement simplemodes (no parameters, not a list mode) can now be UNLOADED O_o
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5102 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_censor.cpp')
| -rw-r--r-- | src/modules/m_censor.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index acc93fa6c..50315997f 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -137,10 +137,12 @@ class ModuleCensor : public Module virtual ~ModuleCensor() { + ServerInstance->Modes->DelMode(cu); + ServerInstance->Modes->DelMode(cc); DELETE(cu); DELETE(cc); } - + virtual void ReplaceLine(irc::string &text, irc::string pattern, irc::string replace) { if ((pattern != "") && (text != "")) @@ -153,9 +155,8 @@ class ModuleCensor : public Module } } } - + // format of a config entry is <badword text="shit" replace="poo"> - virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status) { bool active = false; @@ -219,7 +220,7 @@ class ModuleCensor : public Module virtual Version GetVersion() { // This is version 2 because version 1.x is the unreleased unrealircd module - return Version(1,0,0,0,VF_STATIC|VF_VENDOR); + return Version(1,0,0,0,VF_COMMON|VF_VENDOR); } }; |
