sendto_local_clients_with_capability() sends to a subset of the list of
local clients and cannot visit the same client multiple times like
sendto_channel_flags() and sendto_common_channels_local() can.
rb_linebuf_putmsg(&linebuf, pattern, &args, NULL);
va_end(args);
- current_serial++;
-
RB_DLINK_FOREACH(ptr, lclient_list.head)
{
target_p = ptr->data;
- if(IsIOError(target_p) ||
- target_p->serial == current_serial ||
- !IsCapable(target_p, cap))
+ if(IsIOError(target_p) || !IsCapable(target_p, cap))
continue;
- target_p->serial = current_serial;
send_linebuf(target_p, &linebuf);
}