void init()
{
OnRehash(NULL);
- ServerInstance->Modes->AddMode(&nn);
+ ServerInstance->Modules->AddService(nn);
Implementation eventlist[] = { I_OnUserPreNick, I_On005Numeric, I_OnRehash };
ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}