diff options
author | Adam <Adam@anope.org> | 2016-07-03 12:36:34 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-07-03 12:36:34 -0400 |
commit | 8000ae0c0fe596a0264e4ce15a7cda3ce42d7379 (patch) | |
tree | 319dc5a93022b89923795fa2b2e4ad7b8cfb487d | |
parent | 284d95bfe2e076aadf1c6a4cb17cab06b3b2e876 (diff) |
#1677 apply sqlines even if the ircd doesn't on non opers
-rw-r--r-- | modules/pseudoclients/operserv.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/pseudoclients/operserv.cpp b/modules/pseudoclients/operserv.cpp index 7b02a9745..f443aed95 100644 --- a/modules/pseudoclients/operserv.cpp +++ b/modules/pseudoclients/operserv.cpp @@ -97,7 +97,12 @@ class SQLineManager : public XLineManager u->Kill(Config->GetClient("OperServ"), "Q-Lined: " + x->reason); } else if (x->mask[0] != '#' || IRCD->CanSQLineChannel) + { IRCD->SendSQLine(u, x); + /* If it is an oper, assume they're walking it, otherwise kill for good measure */ + if (u && !u->HasMode("OPER")) + u->Kill(Config->GetClient("OperServ"), "Q-Lined: " + x->reason); + } } void SendDel(XLine *x) anope_override |