From f4bd43e898e6ca415e22546f554e67139e62059e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 12 Mar 2024 16:44:35 +0000 Subject: Add a workaround for users matching expired sqlines. I'll fix this properly in 2.1 because I don't want to make big changes to 2.0. Closes #384. diff --git a/modules/pseudoclients/operserv.cpp b/modules/pseudoclients/operserv.cpp index 22a02f1..714f3b2 100644 --- a/modules/pseudoclients/operserv.cpp +++ b/modules/pseudoclients/operserv.cpp @@ -126,6 +126,9 @@ class SQLineManager : public XLineManager { XLine *x = *it; + if (!Anope::NoExpire && x->expires && x->expires < Anope::CurTime) + continue; // Skip expired lines. + if (x->regex) { if (x->regex->Matches(c->name)) -- cgit v0.10.2-6-g49f6