]> jfr.im git - solanum.git/commitdiff
check bans and quiets for cmode -n/nonmember PRIVMSG main
authorJohn Runyon <redacted>
Mon, 27 May 2024 02:43:34 +0000 (20:43 -0600)
committerJohn Runyon <redacted>
Mon, 27 May 2024 03:11:54 +0000 (21:11 -0600)
ircd/channel.c

index 0a01f972cbe62d9a0e9f7fce60264d3ba76634c6..9ec93f2efabaf9b83d8bf762601b6d1ce7e6dcaa 100644 (file)
@@ -817,6 +817,10 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt
                        else
                                moduledata.approved = CAN_SEND_NONOP;
 
+                       if(MyClient(source_p) && is_banned(chptr, source_p, msptr, NULL, NULL) == CHFL_BAN
+                               || is_quieted(chptr, source_p, msptr, NULL) == CHFL_BAN)
+                               moduledata.approved = CAN_SEND_NO;
+
                        return moduledata.approved;
                }
        }