]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/send.c
Should just specify the name here.
[irc/rqf/shadowircd.git] / src / send.c
index 4aebff91459fb26aa2cc4431b9f507b2a2a4ae3e..db98c579fd8e1a6963cf5a01cf7cd76b9a114a3d 100644 (file)
@@ -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);