diff options
| author | 2009-05-24 02:53:45 +0000 | |
|---|---|---|
| committer | 2009-05-24 02:53:45 +0000 | |
| commit | 0da6b3a13def40e8fd002b9fc60f955467f6372d (patch) | |
| tree | d4aa39ece30255afe7447fb46f39c45c39d679a3 /src/modules/m_censor.cpp | |
| parent | m_dnsbl: Add default duration and error message on invalid duration (diff) | |
| download | inspircd++-0da6b3a13def40e8fd002b9fc60f955467f6372d.tar.gz inspircd++-0da6b3a13def40e8fd002b9fc60f955467f6372d.tar.bz2 inspircd++-0da6b3a13def40e8fd002b9fc60f955467f6372d.zip | |
OnRehash changes: split to multiple hooks to clarify use and prevent explosion of rehashes on a /REHASH *
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_censor.cpp')
| -rw-r--r-- | src/modules/m_censor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index 43fab4006..0f1c3f61c 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -49,7 +49,7 @@ class ModuleCensor : public Module { /* Read the configuration file on startup. */ - OnRehash(NULL,""); + OnRehash(NULL); cu = new CensorUser(ServerInstance); cc = new CensorChannel(ServerInstance); if (!ServerInstance->Modes->AddMode(cu) || !ServerInstance->Modes->AddMode(cc)) @@ -117,7 +117,7 @@ class ModuleCensor : public Module return OnUserPreMessage(user,dest,target_type,text,status,exempt_list); } - virtual void OnRehash(User* user, const std::string ¶meter) + virtual void OnRehash(User* user) { /* * reload our config file on rehash - we must destroy and re-allocate the classes |
