A netwide snote eventually calls into this function again with the same
server as has already been determined is over its sendq. Mark the link
dead before sending the snote to avoid infinite recursion.
if(rb_linebuf_len(&to->localClient->buf_sendq) > get_sendq(to))
{
+ dead_link(to, 1);
+
if(IsServer(to))
{
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
get_sendq(to));
}
- dead_link(to, 1);
return -1;
}
else