1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 05:43:13 +02:00

Added akill ids

This commit is contained in:
Adam
2011-10-22 11:21:21 -04:00
parent ad2ef75cbe
commit c8b3809fc9
15 changed files with 278 additions and 272 deletions
+5 -6
View File
@@ -63,17 +63,16 @@ class DNSBLResolver : public DNSRequest
BotInfo *operserv = findbot(Config->OperServ);
Log(operserv) << "DNSBL: " << user->GetMask() << " appears in " << this->blacklist.name;
XLine *x = new XLine("*@" + user->host, Config->OperServ, Anope::CurTime + this->blacklist.bantime, reason, XLineManager::GenerateUID());
if (this->add_to_akill && akills)
{
XLine *x = akills->Add("*@" + user->host, Config->OperServ, Anope::CurTime + this->blacklist.bantime, reason);
/* If AkillOnAdd is disabled send it anyway, noone wants bots around... */
if (!Config->AkillOnAdd)
akills->Send(NULL, x);
akills->AddXLine(x);
akills->Send(NULL, x);
}
else
{
XLine xline("*@" + user->host, Config->OperServ, Anope::CurTime + this->blacklist.bantime, reason);
ircdproto->SendAkill(NULL, &xline);
ircdproto->SendAkill(NULL, x);
delete x;
}
}
};