* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: send.c 3520 2007-06-30 22:15:35Z jilles $
*/
#include "stdinc.h"
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);