From: pk910 Date: Thu, 30 Jun 2011 20:44:13 +0000 (+0200) Subject: send PART events to OPS on MODE_AUDITORIUM (+u) channels X-Git-Tag: WGN5~39 X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=8e6d4e241c4250f28d37e38db2cbc9d6b86e6aa8 send PART events to OPS on MODE_AUDITORIUM (+u) channels --- 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) ?