- if (!ServerInstance->Modes->AddMode(&kr))
- throw ModuleException("Could not add new modes!");
- ServerInstance->Extensions.Register(&kr.ext);
- Implementation eventlist[] = { I_OnUserPreJoin, I_OnUserKick };
- ServerInstance->Modules->Attach(eventlist, this, 2);