mirror of
https://github.com/anope/anope.git
synced 2026-06-28 07:56:37 +02:00
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.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user