public:
ModuleHalfop() : mh(this)
{
- if (!ServerInstance->Modes->AddMode(&mh))
- throw ModuleException("Could not add new modes!");
}
- ~ModuleHalfop()
+ void init()
{
- ServerInstance->Modes->DelMode(&mh);
+ ServerInstance->Modules->AddService(mh);
}
Version GetVersion()