no mute message for automute

This commit is contained in:
HF 2020-04-29 18:23:50 +02:00
parent 8877a7658a
commit c979df911f

View File

@ -187,11 +187,13 @@ class ChatProvider {
if (timeMin) { if (timeMin) {
const ttl = timeMin * 60; const ttl = timeMin * 60;
await redis.setAsync(key, '', 'EX', ttl); await redis.setAsync(key, '', 'EX', ttl);
webSockets.broadcastChatMessage( if (timeMin !== 600) {
'info', webSockets.broadcastChatMessage(
`${name} has been muted for ${timeMin}min`, 'info',
channelId, `${name} has been muted for ${timeMin}min`,
); channelId,
);
}
} else { } else {
await redis.setAsync(key, ''); await redis.setAsync(key, '');
webSockets.broadcastChatMessage( webSockets.broadcastChatMessage(