diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-12 16:44:35 (GMT) |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-12 16:47:57 (GMT) |
commit | f4bd43e898e6ca415e22546f554e67139e62059e (patch) | |
tree | 4ffb162096128cae62b06c0ce2281e1350492dd1 | |
parent | 7d7664444a8b91ecde082fd56e37cfef8090e72c (diff) | |
download | anope-f4bd43e898e6ca415e22546f554e67139e62059e.zip anope-f4bd43e898e6ca415e22546f554e67139e62059e.tar.gz anope-f4bd43e898e6ca415e22546f554e67139e62059e.tar.bz2 |
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.
-rw-r--r-- | modules/pseudoclients/operserv.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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)) |