conf = new ConfigReader(ServerInstance);
+ Implementation eventlist[] = { I_OnRehash, I_OnKill };
+ ServerInstance->Modules->Attach(eventlist, this, 2);
}
virtual ~ModuleOperLevels()
{
- DELETE(conf);
+ delete conf;
}
- void Implements(char* List)
- {
- List[I_OnRehash] = List[I_OnKill] = 1;
- }
virtual void OnRehash(User* user, const std::string ¶meter)
{
- DELETE(conf);
+ delete conf;
conf = new ConfigReader(ServerInstance);
}