@@ -981,44 +981,6 @@ flood_attack_channel(int p_or_n, struct Client *source_p, struct Channel *chptr,
981981 return 0 ;
982982}
983983
984- /* find_bannickchange_channel()
985- * Input: client to check
986- * Output: channel preventing nick change
987- */
988- struct Channel *
989- find_bannickchange_channel (struct Client * client_p )
990- {
991- struct Channel * chptr ;
992- struct membership * msptr ;
993- rb_dlink_node * ptr ;
994- char src_host [NICKLEN + USERLEN + HOSTLEN + 6 ];
995- char src_iphost [NICKLEN + USERLEN + HOSTLEN + 6 ];
996-
997- if (!MyClient (client_p ) || IsOverride (client_p ))
998- return NULL ;
999-
1000- rb_sprintf (src_host , "%s!%s@%s" , client_p -> name , client_p -> username , client_p -> host );
1001- rb_sprintf (src_iphost , "%s!%s@%s" , client_p -> name , client_p -> username , client_p -> sockhost );
1002-
1003- RB_DLINK_FOREACH (ptr , client_p -> user -> channel .head )
1004- {
1005- msptr = ptr -> data ;
1006- chptr = msptr -> chptr ;
1007- if (is_chanop_voiced (msptr ))
1008- continue ;
1009- /* cached can_send */
1010- if (msptr -> bants == chptr -> bants )
1011- {
1012- if (can_send_banned (msptr ))
1013- return chptr ;
1014- }
1015- else if (is_banned (chptr , client_p , msptr , src_host , src_iphost , NULL ) == CHFL_BAN
1016- || is_quieted (chptr , client_p , msptr , src_host , src_iphost ) == CHFL_BAN )
1017- return chptr ;
1018- }
1019- return NULL ;
1020- }
1021-
1022984/* void check_spambot_warning(struct Client *source_p)
1023985 * Input: Client to check, channel name or NULL if this is a part.
1024986 * Output: none
0 commit comments