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

Remove the two day X-line cap.

This commit is contained in:
Sadie Powell
2023-11-03 11:01:01 +00:00
parent 38d5b93e4a
commit 6e16e71fda
6 changed files with 22 additions and 49 deletions
+2 -4
View File
@@ -32,10 +32,8 @@ class ngIRCdProto : public IRCDProto
void SendAkill(User *u, XLine *x) override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->expires - Anope::CurTime;
if (timeleft > 172800 || !x->expires)
timeleft = 172800;
// Calculate the time left before this would expire
time_t timeleft = x->expires ? x->expires - Anope::CurTime : x->expires;
UplinkSocket::Message(Me) << "GLINE " << x->mask << " " << timeleft << " :" << x->GetReason() << " (" << x->by << ")";
}