X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/82f8e812f5f3df9a23b58dff2024f83237280b9d..8e3b2b85c7221f2f9f1ca6d5e48880d521d2a1a3:/src/send.c diff --git a/src/send.c b/src/send.c index e5d71f2..db98c57 100644 --- a/src/send.c +++ b/src/send.c @@ -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);