From 972dcf7cef8ecf7a19254db1ea7a4a55d40de850 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 1 Jan 2018 11:36:03 -0500 Subject: [PATCH] Fix #129 --- src/channel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/channel.c b/src/channel.c index 414e1656e..1ddfc85af 100644 --- a/src/channel.c +++ b/src/channel.c @@ -894,8 +894,9 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt */ if(chptr->mode.mode & MODE_NOPRIVMSGS || chptr->mode.mode & MODE_MODERATED) moduledata.approved = CAN_SEND_NO; - else - moduledata.approved = CAN_SEND_NONOP; + if(is_banned(chptr, source_p, NULL, NULL, NULL, NULL) == CHFL_BAN || + is_quieted(chptr, source_p, NULL, NULL, NULL) == CHFL_BAN) + moduledata.approved = CAN_SEND_NO; return moduledata.approved; }