From 2cb0d9057bf1968d36168a76e25f4cf4d3b33fbf Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 8 Oct 2017 14:21:59 -0400 Subject: Remove 2 day xline cap --- src/xline.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/xline.cpp b/src/xline.cpp index c64761297..d0e058f09 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -199,6 +199,12 @@ Anope::string XLine::GetReasonWithID() return r; } +bool XLine::IsExpired() +{ + time_t expires = GetExpires(); + return expires > 0 && expires <= Anope::CurTime; +} + bool XLine::HasNickOrReal() const { return !this->GetNick().empty() || !this->GetReal().empty(); -- cgit