mirror of
https://github.com/anope/anope.git
synced 2026-07-06 18:23:12 +02:00
Made akills work on IRCds that do not support bans (ngircd)
This commit is contained in:
@@ -66,13 +66,13 @@ class DNSBLResolver : public DNSRequest
|
||||
Log(LOG_COMMAND, OperServ, &fake_akill) << "for " << user->GetMask() << " (Listed in " << this->blacklist.name << ")";
|
||||
/* If AkillOnAdd is disabled send it anyway, noone wants bots around... */
|
||||
if (!Config->AkillOnAdd)
|
||||
ircdproto->SendAkill(x);
|
||||
ircdproto->SendAkill(*user, x);
|
||||
}
|
||||
else
|
||||
{
|
||||
Log(OperServ) << "DNSBL: " << user->GetMask() << " appears in " << this->blacklist.name;
|
||||
XLine xline(Anope::string("*@") + user->host, OperServ ? OperServ->nick : "OperServ", Anope::CurTime + this->blacklist.bantime, reason);
|
||||
ircdproto->SendAkill(&xline);
|
||||
ircdproto->SendAkill(*user, &xline);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user