summaryrefslogtreecommitdiff
path: root/modules/pseudoclients/operserv.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-07-03 12:36:34 -0400
committerAdam <Adam@anope.org>2016-07-03 12:36:34 -0400
commit8000ae0c0fe596a0264e4ce15a7cda3ce42d7379 (patch)
tree319dc5a93022b89923795fa2b2e4ad7b8cfb487d /modules/pseudoclients/operserv.cpp
parent284d95bfe2e076aadf1c6a4cb17cab06b3b2e876 (diff)
#1677 apply sqlines even if the ircd doesn't on non opers
Diffstat (limited to 'modules/pseudoclients/operserv.cpp')
-rw-r--r--modules/pseudoclients/operserv.cpp5
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