summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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();