@@ -270,7+270,7 @@ class ChanProtect : public ModeHandler, public FounderProtectBase
else
{
// bzzzt, wrong answer!
- source->WriteServ("482 %s %s :You are not a channel founder",source->nick, channel->name);
+ source->WriteNumeric(482, "%s %s :You are not a channel founder",source->nick, channel->name);
return MODEACTION_DENY;
}
}
@@ -308,7+308,7 @@ class ModuleChanProtect : public Module
cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
- if (!ServerInstance->AddMode(cp) || !ServerInstance->AddMode(cf))
+ if (!ServerInstance->Modes->AddMode(cp) || !ServerInstance->Modes->AddMode(cf))
{
delete cp;
delete cf;
@@ -362,9+362,9 @@ class ModuleChanProtect : public Module
cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
/* These wont fail, we already owned the mode characters before */
- ServerInstance->AddMode(cp);
- ServerInstance->AddMode(cf);
- ServerInstance->WriteOpers("*** WARNING: +qa prefixes were enabled or disabled via a REHASH. Clients will probably need to reconnect to pick up this change.");
+ ServerInstance->Modes->AddMode(cp);
+ ServerInstance->Modes->AddMode(cf);
+ ServerInstance->SNO->WriteToSnoMask('A', "WARNING: +qa prefixes were enabled or disabled via a REHASH. Clients will probably need to reconnect to pick up this change.");
}
}
@@ -419,12+419,12 @@ class ModuleChanProtect : public Module
case AC_DEOP:
if (dest->GetExt(founder,dummyptr))
{
- source->WriteServ("484 "+std::string(source->nick)+" "+std::string(channel->name)+" :Can't deop "+std::string(dest->nick)+" as they're a channel founder");
+ source->WriteNumeric(484, ""+std::string(source->nick)+" "+std::string(channel->name)+" :Can't deop "+std::string(dest->nick)+" as they're a channel founder");
return ACR_DENY;
}
if ((dest->GetExt(protect,dummyptr)) && (!source->GetExt(protect,dummyptr)))