- sendto_server(client_p->from, NULL, NOCAPS, CAP_TS6, "%s", buf_nick);
-
- /* if the source does TS6 we have to remove our bans. Its now safe
- * to issue -b's to the non-ts6 servers, as the sjoin we've just
- * sent will kill any ops they have.
- */
- if(!keep_our_modes && source_p->id[0] != '\0')
- {
- if(rb_dlink_list_length(&chptr->banlist) > 0)
- remove_ban_list(chptr, fakesource_p, &chptr->banlist, 'b', NOCAPS, ALL_MEMBERS);
-
- if(rb_dlink_list_length(&chptr->exceptlist) > 0)
- remove_ban_list(chptr, fakesource_p, &chptr->exceptlist,
- 'e', CAP_EX, ONLY_CHANOPS);
-
- if(rb_dlink_list_length(&chptr->invexlist) > 0)
- remove_ban_list(chptr, fakesource_p, &chptr->invexlist,
- 'I', CAP_IE, ONLY_CHANOPS);
-
- if(rb_dlink_list_length(&chptr->quietlist) > 0)
- remove_ban_list(chptr, fakesource_p, &chptr->quietlist,
- 'q', NOCAPS, ALL_MEMBERS);
-
- chptr->bants++;
- }