ModulePrivacyMode(InspIRCd* Me) : Module(Me)
{
pm = new PrivacyMode(ServerInstance);
- if (!ServerInstance->AddMode(pm))
+ if (!ServerInstance->Modes->AddMode(pm))
throw ModuleException("Could not add new modes!");
Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice };
ServerInstance->Modules->Attach(eventlist, this, 2);