diff options
-rw-r--r-- | src/xline.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index c92643bcd..307ffc21c 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -167,6 +167,9 @@ bool XLineManager::AddLine(XLine* line, User* user) { ServerInstance->BanCache->RemoveEntries(line->type, false); // XXX perhaps remove ELines here? + if (line->duration && ServerInstance->Time() > line->expiry) + return false; // Don't apply expired XLines. + /* If the line exists, check if its an expired line */ ContainerIter x = lookup_lines.find(line->type); if (x != lookup_lines.end()) |