diff options
| author | 2007-01-01 20:53:20 +0000 | |
|---|---|---|
| committer | 2007-01-01 20:53:20 +0000 | |
| commit | 42d5b9571eff06b0c33093dc9118c29f9603fd2b (patch) | |
| tree | 97429d79e59c3f14d5fea75e2a25524af2bd842a /src/modules/m_censor.cpp | |
| parent | Make sure that if an oper opers up and has an swhois in their opertype or ope... (diff) | |
Fix to allow for OnRehash to know what user initiated the rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 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 4df2db95e..0930c1d45 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -96,7 +96,7 @@ class ModuleCensor : public Module { /* Read the configuration file on startup. */ - OnRehash(""); + OnRehash(NULL,""); cu = new CensorUser(ServerInstance); cc = new CensorChannel(ServerInstance); if (!ServerInstance->AddMode(cu, 'G') || !ServerInstance->AddMode(cc, 'G')) @@ -159,7 +159,7 @@ class ModuleCensor : public Module return OnUserPreMessage(user,dest,target_type,text,status,exempt_list); } - virtual void OnRehash(const std::string ¶meter) + virtual void OnRehash(userrec* user, const std::string ¶meter) { /* * reload our config file on rehash - we must destroy and re-allocate the classes |
