diff options
author | Adam <Adam@anope.org> | 2013-09-15 05:23:00 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 19:11:01 -0400 |
commit | 5f7127dd92ec9b86b64ea0bbc385e5c06be77fff (patch) | |
tree | 8722c19783c088f8c77cdac7f48ea38668101206 /modules/pseudoclients/operserv.cpp | |
parent | dcb3ff7d343f4ac2db55def9895ed459c1e3f417 (diff) |
Don't send regex qlines and nlines to the IRCd
Diffstat (limited to 'modules/pseudoclients/operserv.cpp')
-rw-r--r-- | modules/pseudoclients/operserv.cpp | 9 |
1 files 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); } |