aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_censor.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-08-11 01:35:01 +0000
committerGravatar brain2006-08-11 01:35:01 +0000
commit12737ab4ad61a0d8a908c8a21594c7012e21eb3c (patch)
treebf819b3a528227d3ddf929e25e8b74d1db8ef1c7 /src/modules/m_censor.cpp
parentAnd fix a bug (diff)
ConfigReader and FileReader now take InspIRCd* to their constructors
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_censor.cpp')
-rw-r--r--src/modules/m_censor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp
index 796224890..d227a2347 100644
--- a/src/modules/m_censor.cpp
+++ b/src/modules/m_censor.cpp
@@ -203,10 +203,10 @@ class ModuleCensor : public Module
* reload our config file on rehash - we must destroy and re-allocate the classes
* to call the constructor again and re-read our data.
*/
- ConfigReader* Conf = new ConfigReader;
+ ConfigReader* Conf = new ConfigReader(ServerInstance);
std::string Censorfile = Conf->ReadValue("censor","file",0);
// this automatically re-reads the configuration file into the class
- ConfigReader* MyConf = new ConfigReader(Censorfile);
+ ConfigReader* MyConf = new ConfigReader(ServerInstance, Censorfile);
if ((Censorfile == "") || (!MyConf->Verify()))
{
CensorException e;