int erroffset;
public:
- ModuleFilterPCRE()
+ ModuleFilterPCRE(Server* Me)
+ : Module::Module(Me)
{
// read the configuration file on startup.
- // it is perfectly valid to set <FilterPCRE file> to the value of the
+ // it is perfectly valid to set <filter file> to the value of the
// main config file, then append your <keyword> tags to the bottom
// of the main config... but rather messy. That's why the capability
// of using a seperate config file is provided.
- Srv = new Server;
+ Srv = Me;
Conf = new ConfigReader;
std::string filterfile = Conf->ReadValue("filter","file",0);
MyConf = new ConfigReader(filterfile);
virtual ~ModuleFilterPCRE()
{
- delete Srv;
delete MyConf;
delete Conf;
}
{
}
- virtual Module * CreateModule()
+ virtual Module * CreateModule(Server* Me)
{
- return new ModuleFilterPCRE;
+ return new ModuleFilterPCRE(Me);
}
};