]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/send.c
Clean up cmode norepeat's metadata when unsetting +K.
[irc/rqf/shadowircd.git] / src / send.c
index e5d71f2285236752503ea0e6b4893de5c091fc02..db98c579fd8e1a6963cf5a01cf7cd76b9a114a3d 100644 (file)
@@ -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);