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

Commit 6625e43

Browse files
committed
Fix #129
1 parent 45d02f7 commit 6625e43

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/channel.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -875,14 +875,10 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt
875875

876876
if(msptr == NULL)
877877
{
878-
/* if its +m or +n and theyre not in the channel,
879-
* they cant send. we dont check bans here because
880-
* theres no possibility of caching them --fl
881-
*/
882878
if(chptr->mode.mode & MODE_NOPRIVMSGS || chptr->mode.mode & MODE_MODERATED)
883879
moduledata.approved = CAN_SEND_NO;
884-
else
885-
moduledata.approved = CAN_SEND_NONOP;
880+
if(is_banned(chptr, source_p, NULL, NULL, NULL, NULL))
881+
moduledata.approved = CAN_SEND_NO;
886882

887883
return moduledata.approved;
888884
}

0 commit comments

Comments
 (0)