diff options
author | Adam <Adam@anope.org> | 2016-10-06 14:17:01 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-06 14:17:01 -0400 |
commit | 059291bf9fd16e534d2f99bd5aad55d8362da701 (patch) | |
tree | 7e01c114347c821dda7885bdd320ed526c90069c | |
parent | 8b90b1f1d7c1c63bd50a2a7812d251797d9e3ef8 (diff) |
#1677 apply sqlines even if the ircd doesn't on non opers
-rw-r--r-- | modules/operserv/main/operserv.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/operserv/main/operserv.cpp b/modules/operserv/main/operserv.cpp index afed0783f..09dc3bbac 100644 --- a/modules/operserv/main/operserv.cpp +++ b/modules/operserv/main/operserv.cpp @@ -105,7 +105,12 @@ class SQLineManager : public XLineManager u->Kill(Config->GetClient("OperServ"), "Q-Lined: " + x->GetReason()); } else if (x->GetMask()[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->GetReason()); + } } void SendDel(XLine *x) override |