From: pk910 Date: Thu, 30 Jun 2011 21:21:51 +0000 (+0200) Subject: send PART event for opped or voiced users to ALL users in the channel (fixed status... X-Git-Tag: WGN5~38 X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=bdcbb7e5fe904bc2eabe087a03b8294b4de6ef6a send PART event for opped or voiced users to ALL users in the channel (fixed status check) --- diff --git a/ircd/channel.c b/ircd/channel.c index 2a83b7c..aa26630 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -3916,7 +3916,7 @@ joinbuf_join(struct JoinBuf *jbuf, struct Channel *chan, unsigned int flags) SetUserParting(member); /* Send notification to channel */ - if((chan->mode.mode & MODE_AUDITORIUM) && !(flags & CHFL_VOICED_OR_OPPED)) { + if((chan->mode.mode & MODE_AUDITORIUM) && !(member->status & CHFL_VOICED_OR_OPPED)) { //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))