summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-10-08 14:21:59 -0400
committerAdam <Adam@anope.org>2017-10-08 14:21:59 -0400
commit2cb0d9057bf1968d36168a76e25f4cf4d3b33fbf (patch)
tree0a6caccce7e5c4f4bed51964cb130b79d8219f1e /src
parent50f7429fda7cb3ffd8c34abb0a13f3dcc929f2ed (diff)
Remove 2 day xline cap
Diffstat (limited to 'src')
-rw-r--r--src/xline.cpp6
1 files changed, 6 insertions, 0 deletions
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();