public:
NoNicks(InspIRCd* Instance) : ModeHandler(Instance, 'N', 0, 0, false, MODETYPE_CHANNEL, false) { }
- ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding)
+ ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool)
{
if (adding)
{
{
nn = new NoNicks(ServerInstance);
- ServerInstance->AddMode(nn);
+ ServerInstance->Modes->AddMode(nn);
Implementation eventlist[] = { I_OnUserPreNick };
ServerInstance->Modules->Attach(eventlist, this, 1);
}
virtual Version GetVersion()
{
- return Version(1,1,0,1,VF_COMMON|VF_VENDOR,API_VERSION);
+ return Version(1,2,0,1,VF_COMMON|VF_VENDOR,API_VERSION);
}
if (CHANOPS_EXEMPT(ServerInstance, 'N') && curr->GetStatus(user) == STATUS_OP)
continue;
- user->WriteServ("447 %s :Can't change nickname while on %s (+N is set)", user->nick, curr->name);
+ user->WriteNumeric(447, "%s :Can't change nickname while on %s (+N is set)", user->nick, curr->name);
return 1;
}
}