summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-08 03:10:21 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-08 03:10:21 +0000
commit54762245b84519c5f2d805d6c4e9bf735895da78 (patch)
tree09d4ea3128c18fadd587b8200a1b1105a8fd51c3 /src/core
parent63e8a8f6c2b27705b6526ed58be96255e6c36a35 (diff)
Fix bug #1027, properly send a Globop on CS DROP, patch provided by Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2146 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cs_drop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/cs_drop.c b/src/core/cs_drop.c
index cf30df8dc..9098f73e0 100644
--- a/src/core/cs_drop.c
+++ b/src/core/cs_drop.c
@@ -94,8 +94,10 @@ class CommandCSDrop : public Command
/* We must make sure that the Services admin has not normally the right to
* drop the channel before issuing the wallops.
*/
- if (WallDrop && level < ACCESS_FOUNDER)
- ircdproto->SendGlobops(s_ChanServ, "\2%s\2 used DROP on channel \2%s\2", u->nick, chan);
+ if (WallDrop) {
+ if ((level < ACCESS_FOUNDER) || (!is_real_founder(u, ci) && ci->flags & CI_SECUREFOUNDER))
+ ircdproto->SendGlobops(s_ChanServ, "\2%s\2 used DROP on channel \2%s\2", u->nick, chan);
+ }
notice_lang(s_ChanServ, u, CHAN_DROPPED, chan);
send_event(EVENT_CHAN_DROP, 1, chan);