From bdcbb7e5fe904bc2eabe087a03b8294b4de6ef6a Mon Sep 17 00:00:00 2001 From: pk910 Date: Thu, 30 Jun 2011 23:21:51 +0200 Subject: [PATCH] send PART event for opped or voiced users to ALL users in the channel (fixed status check) --- ircd/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.20.1