Exemplo n.º 1
0
	void Apply(User* u) override
	{
		if (ZlineOnMatch)
		{
			ZLine* zl = new ZLine(ServerInstance->Time(), duration ? expiry - ServerInstance->Time() : 0, ServerInstance->Config->ServerName.c_str(), reason.c_str(), u->GetIPString());
			if (ServerInstance->XLines->AddLine(zl, NULL))
			{
				std::string timestr = InspIRCd::TimeString(zl->expiry);
				ServerInstance->SNO.WriteToSnoMask('x', "Z-line added due to R-line match on %s%s%s: %s",
					zl->ipaddr.c_str(), zl->duration ? " to expire on " : "", zl->duration ? timestr.c_str() : "", zl->reason.c_str());
				added_zline = true;
			}
			else
				delete zl;
		}
		DefaultApply(u, "R", false);
	}
Exemplo n.º 2
0
void GLine::Apply(User* u)
{
    DefaultApply(u, "G", (this->identmask == "*") ? true : false);
}
Exemplo n.º 3
0
void ZLine::Apply(User* u)
{
    DefaultApply(u, "Z", true);
}
Exemplo n.º 4
0
void GLine::Apply(User* u)
{
	DefaultApply(u, "G", (strcmp(this->identmask, "*") == 0) ? true : false);
}