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

Fixed bug #1258, more Windows stuff, and more language strings

This commit is contained in:
Adam
2011-03-30 23:59:57 -04:00
parent 8098ed899a
commit 8dec0c1f17
24 changed files with 44 additions and 47 deletions
+2 -2
View File
@@ -134,8 +134,8 @@ void add_session(User *u)
if (Config->MaxSessionKill && session->hits >= Config->MaxSessionKill && SGLine)
{
const Anope::string &akillmask = "*@" + u->host;
XLine *x = new XLine(akillmask, Config->s_OperServ, Anope::CurTime + Config->SessionAutoKillExpiry, "Session limit exceeded");
SGLine->AddXLine(x);
const Anope::string &akillreason = "Session limit exceeded for " + u->host;
SGLine->Add(NULL, NULL, akillmask, Anope::CurTime + Config->SessionAutoKillExpiry, akillreason);
ircdproto->SendGlobops(OperServ, "Added a temporary AKILL for \2%s\2 due to excessive connections", akillmask.c_str());
}
}