X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/25b1f927bed9f76e17c97551293b04317adbe624..cb097b8840594b6a77aab21d0b4c20f036a7d012:/src/send.c?ds=sidebyside diff --git a/src/send.c b/src/send.c index 4aebff9..db98c57 100644 --- a/src/send.c +++ b/src/send.c @@ -584,7 +584,7 @@ sendto_channel_opmod(struct Client *one, struct Client *source_p, 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)) @@ -646,7 +646,12 @@ sendto_channel_local(int type, struct Channel *chptr, const char *pattern, ...) 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);