From 5f7127dd92ec9b86b64ea0bbc385e5c06be77fff Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 15 Sep 2013 05:23:00 -0400 Subject: [PATCH] Don't send regex qlines and nlines to the IRCd --- modules/pseudoclients/operserv.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/pseudoclients/operserv.cpp b/modules/pseudoclients/operserv.cpp index cdc74c470..76dc18ad9 100644 --- a/modules/pseudoclients/operserv.cpp +++ b/modules/pseudoclients/operserv.cpp @@ -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); }