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(userrec* user, const std::string ¶meter)
+ virtual void OnRehash(User* user, const std::string ¶meter)
{
- DELETE(conf);
+ delete conf;
conf = new ConfigReader(ServerInstance);
}
return Version(1,1,0,1,VF_VENDOR,API_VERSION);
}
- virtual int OnKill(userrec* source, userrec* dest, const std::string &reason)
+ virtual int OnKill(User* source, User* dest, const std::string &reason)
{
long dest_level = 0,source_level = 0;