1
0
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:
Adam
2013-09-15 05:23:00 -04:00
parent dcb3ff7d34
commit 5f7127dd92
+5 -4
View File
@@ -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);
}