X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_censor.cpp;h=0680644a72ab972f6f74fb9693e40b698b5bbdd7;hb=43fe72edad4c5dfd1a3a700bea17c8ee7a7c3d8e;hp=e396a3e5101002e5eb13891c159ca5c73f80bc9a;hpb=2d821f2980825be73e3f90b47ffff365b0ec5ecb;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index e396a3e51..0680644a7 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -34,11 +34,18 @@ class ModuleCensor : public Module ModuleCensor(Server* Me) : Module::Module(Me) { - // read the configuration file on startup. - // it is perfectly valid to set to the value of the - // main config file, then append your 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 to the value of the + * main config file, then append your 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 + * + * XXX - These module pre-date the include directive which exists since beta 5 -- Brain + */ Srv = Me; Conf = new ConfigReader; std::string Censorfile = Conf->ReadValue("censor","file",0); @@ -170,8 +177,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;