mirror of
https://github.com/anope/anope.git
synced 2026-06-28 17:56:38 +02:00
Don't send regex qlines and nlines to the IRCd
This commit is contained in:
@@ -102,7 +102,7 @@ class SQLineManager : public XLineManager
|
||||
|
||||
void SendDel(XLine *x) anope_override
|
||||
{
|
||||
if (!IRCD->CanSQLine)
|
||||
if (!IRCD->CanSQLine || x->IsRegex())
|
||||
;
|
||||
else if (x->mask[0] != '#' || IRCD->CanSQLineChannel)
|
||||
IRCD->SendSQLineDel(x);
|
||||
@@ -149,15 +149,16 @@ class SNLineManager : public XLineManager
|
||||
|
||||
void Send(User *u, XLine *x) anope_override
|
||||
{
|
||||
if (IRCD->CanSNLine)
|
||||
if (IRCD->CanSNLine && !x->IsRegex())
|
||||
IRCD->SendSGLine(u, x);
|
||||
else if (u)
|
||||
|
||||
if (u)
|
||||
u->Kill(Config->GetClient("OperServ"), "SNLined: " + x->reason);
|
||||
}
|
||||
|
||||
void SendDel(XLine *x) anope_override
|
||||
{
|
||||
if (IRCD->CanSNLine)
|
||||
if (IRCD->CanSNLine && !x->IsRegex())
|
||||
IRCD->SendSGLineDel(x);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user