- // 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;
- std::string Censorfile = Conf->ReadValue("censor","file",0);
- // this automatically re-reads the configuration file into the class
- MyConf = new ConfigReader(Censorfile);
- if ((Censorfile == "") || (!MyConf->Verify()))
- {
- // bail if the user forgot to create a config file
- printf("Error, could not find <censor file=\"\"> definition in your config file!");
- exit(0);
- }
- Srv->Log(DEFAULT,std::string("m_censor: read configuration from ")+Censorfile);
+ return OnUserPreMessage(user,dest,target_type,text,status,exempt_list);