send PART events to OPS on MODE_AUDITORIUM (+u) channels
authorpk910 <philipp@zoelle1.de>
Thu, 30 Jun 2011 20:44:13 +0000 (22:44 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 30 Jun 2011 20:44:13 +0000 (22:44 +0200)
ircd/channel.c

index 65d37b22afb8f0b1db2dd003035215827ab10a13..2a83b7c3f210e5a4a428ae288b661f6fcbfde750 100644 (file)
@@ -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) ?