should do the trick.

This commit is contained in:
Ismaël Moret 2024-02-01 18:38:10 +00:00
parent dec958eb84
commit bd1647174b

View file

@ -83,7 +83,8 @@ async function main() {
}) })
} }
if(stream.isNSFW === true) { const channel_NSFW = stream.channel && channels.first((channel: Channel) => (channel.id === stream.channel) && (channel.isNSFW === true))
if(channel_NSFW) {
log.add({ log.add({
type: 'error', type: 'error',
line: stream.line, line: stream.line,