Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit 972dcf7

Browse files
committed
Fix #129
1 parent 4b033a7 commit 972dcf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/channel.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,9 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt
894894
*/
895895
if(chptr->mode.mode & MODE_NOPRIVMSGS || chptr->mode.mode & MODE_MODERATED)
896896
moduledata.approved = CAN_SEND_NO;
897-
else
898-
moduledata.approved = CAN_SEND_NONOP;
897+
if(is_banned(chptr, source_p, NULL, NULL, NULL, NULL) == CHFL_BAN ||
898+
is_quieted(chptr, source_p, NULL, NULL, NULL) == CHFL_BAN)
899+
moduledata.approved = CAN_SEND_NO;
899900

900901
return moduledata.approved;
901902
}

0 commit comments

Comments
 (0)