- joinbuf_join(&parts, chptr, /* part client from channel */
- member_can_send_to_channel(member) ? 0 : CHFL_BANNED);
+ if (!member_can_send_to_channel(member, 0))
+ {
+ flags |= CHFL_BANNED;
+ /* Remote clients don't want to see a comment either. */
+ parts.jb_comment = 0;
+ }
+
+ if (IsDelayedJoin(member))
+ flags |= CHFL_DELAYED;
+
+ joinbuf_join(&parts, chptr, flags); /* part client from channel */