summaryrefslogtreecommitdiff
path: root/src/sessions.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-30 23:59:57 -0400
committerAdam <Adam@anope.org>2011-03-30 23:59:57 -0400
commit8dec0c1f1798845a47914570869ed94ce44ce58d (patch)
treec2e016c51195c702f6fd08db91c45673dff3e3da /src/sessions.cpp
parent8098ed899a3648897c0de925c974e21883a76b8d (diff)
Fixed bug #1258, more Windows stuff, and more language strings
Diffstat (limited to 'src/sessions.cpp')
-rw-r--r--src/sessions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sessions.cpp b/src/sessions.cpp
index 2be83410c..358527ea0 100644
--- a/src/sessions.cpp
+++ b/src/sessions.cpp
@@ -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());
}
}