1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 20:33: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
+3 -1
View File
@@ -679,7 +679,9 @@ class OSSession : public Module
if (Config->MaxSessionKill && session->hits >= Config->MaxSessionKill && akills)
{
const Anope::string &akillmask = "*@" + u->host;
akills->Add(akillmask, Config->OperServ, Anope::CurTime + Config->SessionAutoKillExpiry, "Session limit exceeded");
XLine *x = new XLine(akillmask, Config->OperServ, Anope::CurTime + Config->SessionAutoKillExpiry, "Session limit exceeded", XLineManager::GenerateUID());
akills->AddXLine(x);
akills->Send(NULL, x);
if (bi)
ircdproto->SendGlobops(bi, "Added a temporary AKILL for \2%s\2 due to excessive connections", akillmask.c_str());
}