From 8e6d4e241c4250f28d37e38db2cbc9d6b86e6aa8 Mon Sep 17 00:00:00 2001 From: pk910 Date: Thu, 30 Jun 2011 22:44:13 +0200 Subject: [PATCH] send PART events to OPS on MODE_AUDITORIUM (+u) channels --- ircd/channel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ircd/channel.c b/ircd/channel.c index 65d37b2..2a83b7c 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -3917,7 +3917,10 @@ joinbuf_join(struct JoinBuf *jbuf, struct Channel *chan, unsigned int flags) /* Send notification to channel */ if((chan->mode.mode & MODE_AUDITORIUM) && !(flags & CHFL_VOICED_OR_OPPED)) { - //do noting here + //send part to ops only + sendcmdto_channel_butserv_butone(jbuf->jb_source, CMD_PART, chan, NULL, SKIP_NONOPS, "%H :%s", chan, jbuf->jb_comment); + if(MyUser(jbuf->jb_source)) + sendcmdto_one(jbuf->jb_source, CMD_PART, jbuf->jb_source, "%H :%s", chan, jbuf->jb_comment); } else if (!(flags & (CHFL_ZOMBIE | CHFL_DELAYED))) sendcmdto_channel_butserv_butone(jbuf->jb_source, CMD_PART, chan, NULL, 0, (flags & CHFL_BANNED || !jbuf->jb_comment) ? -- 2.20.1