send PART event for opped or voiced users to ALL users in the channel (fixed status...
authorpk910 <philipp@zoelle1.de>
Thu, 30 Jun 2011 21:21:51 +0000 (23:21 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 30 Jun 2011 21:21:51 +0000 (23:21 +0200)
ircd/channel.c

index 2a83b7c3f210e5a4a428ae288b661f6fcbfde750..aa266307b4dbbc5ad26739aabfb1b31eeb20b2da 100644 (file)
@@ -3916,7 +3916,7 @@ joinbuf_join(struct JoinBuf *jbuf, struct Channel *chan, unsigned int flags)
     SetUserParting(member);
 
     /* Send notification to channel */
     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))
          //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))