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

Removed operserv:notifications in favor of log blocks, as well as some other notifiications

This commit is contained in:
Adam
2012-02-08 18:00:24 -05:00
parent 089c85b27e
commit 1bc8e2ab82
15 changed files with 52 additions and 100 deletions
+6 -2
View File
@@ -549,13 +549,17 @@ class OSDefcon : public Module
if (!Config->SessionLimitDetailsLoc.empty())
ircdproto->SendMessage(findbot(Config->OperServ), u->nick, "%s", Config->SessionLimitDetailsLoc.c_str());
u->Kill(Config->OperServ, "Defcon session limit exceeded");
++session->hits;
if (akills && Config->MaxSessionKill && session->hits >= Config->MaxSessionKill)
{
XLine x("*@" + u->host, Config->OperServ, Anope::CurTime + Config->SessionAutoKillExpiry, "Defcon session limit exceeded", XLineManager::GenerateUID());
akills->Send(NULL, &x);
ircdproto->SendGlobops(findbot(Config->OperServ), "[DEFCON] Added a temporary AKILL for \2*@%s\2 due to excessive connections", u->host.c_str());
Log(findbot(Config->OperServ), "akill/defcon") << "[DEFCON] Added a temporary AKILL for \2*@" << u->host << "\2 due to excessive connections";
}
else
{
u->Kill(Config->OperServ, "Defcon session limit exceeded");
u = NULL; /* No guarentee u still exists */
}
}
}