diff options
| author | 2005-12-23 09:22:01 +0000 | |
|---|---|---|
| committer | 2005-12-23 09:22:01 +0000 | |
| commit | d54d3b574f9be6d453499f2d2f70d7f520becfed (patch) | |
| tree | 8221210dedf3c4a5357fdefe717ff8fc42dec998 /src/modules/m_censor.cpp | |
| parent | Added query about printf() use (diff) | |
Stylistic changes, added a comment on possible configuration file inclusion.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2644 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_censor.cpp')
| -rw-r--r-- | src/modules/m_censor.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index e396a3e51..dcf4a78eb 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -34,11 +34,16 @@ class ModuleCensor : public Module ModuleCensor(Server* Me) : Module::Module(Me) { - // read the configuration file on startup. - // it is perfectly valid to set <censor file> to the value of the - // main config file, then append your <badword> tags to the bottom - // of the main config... but rather messy. That's why the capability - // of using a seperate config file is provided. + /* + * read the configuration file on startup. + * it is perfectly valid to set <censor file> to the value of the + * main config file, then append your <badword> tags to the bottom + * of the main config... but rather messy. That's why the capability + * of using a seperate config file is provided. + * + * XXX - Really, it'd be nice to scraip this kind of thing, and have something like + * an include directive to include additional configuration files. Might make our lives easier. --w00t + */ Srv = Me; Conf = new ConfigReader; std::string Censorfile = Conf->ReadValue("censor","file",0); @@ -170,8 +175,10 @@ class ModuleCensor : public Module virtual void OnRehash(std::string parameter) { - // reload our config file on rehash - we must destroy and re-allocate the classes - // to call the constructor again and re-read our data. + /* + * reload our config file on rehash - we must destroy and re-allocate the classes + * to call the constructor again and re-read our data. + */ delete Conf; delete MyConf; Conf = new ConfigReader; |
