- /*
- * 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
- *
- * 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);
- MyConf = new ConfigReader(Censorfile);
- if ((Censorfile == "") || (!MyConf->Verify()))
+ if (adding)
+ {
+ if (!dest->IsModeSet('G'))
+ {
+ dest->SetMode('G',true);
+ return MODEACTION_ALLOW;
+ }
+ }
+ else