get_sendq(to));
}
- if(IsClient(to))
- to->flags |= FLAGS_SENDQEX;
-
- dead_link(to);
+ dead_link(to, 1);
return -1;
}
else
if(retlen == 0 || (retlen < 0 && !rb_ignore_errno(errno)))
{
- dead_link(to);
+ dead_link(to, 0);
return;
}
}
if(IsIOError(target_p->from) || target_p->from == one)
continue;
- if((msptr->flags & CHFL_CHANOP) == 0)
+ if(!is_any_op(msptr))
continue;
if(IsDeaf(target_p))
if(IsIOError(target_p))
continue;
- if(type && ((msptr->flags & type) == 0))
+ if(type == ONLY_OPERS)
+ {
+ if(!IsOper(target_p))
+ continue;
+ }
+ else if(type && ((msptr->flags & type) == 0))
continue;
_send_linebuf(target_p, &linebuf);