1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 10:33:13 +02:00

Don't send SQLines unless the IRCd supports it

This commit is contained in:
Adam
2013-09-14 01:44:22 -04:00
parent b60b23fd48
commit 3b0b1bc80e
+17 -2
View File
@@ -83,12 +83,27 @@ class SQLineManager : public XLineManager
void Send(User *u, XLine *x) anope_override
{
IRCD->SendSQLine(u, x);
if (!IRCD->CanSQLine)
{
if (!u)
;
else if (nickserv)
nickserv->Collide(u, NULL);
else
u->Kill(Config->GetClient("OperServ"), "Q-Lined: " + x->reason);
}
else if (x->IsRegex())
;
else if (x->mask[0] != '#' || IRCD->CanSQLineChannel)
IRCD->SendSQLine(u, x);
}
void SendDel(XLine *x) anope_override
{
IRCD->SendSQLineDel(x);
if (!IRCD->CanSQLine)
;
else if (x->mask[0] != '#' || IRCD->CanSQLineChannel)
IRCD->SendSQLineDel(x);
}
bool Check(User *u, const XLine *x) anope_override