Update format.js

This commit is contained in:
Aleksandr Statciuk 2021-08-10 07:45:52 +03:00
parent b174e5e178
commit 0529364483
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ function addMissingData(channel) {
function updateStatus(channel, status) {
if (status.ok) {
channel.status = null
} else if (status.reason.includes('timed out')) {
} else if (
status.reason.includes('timed out') ||
status.reason.includes('not one of 40{0,1,3,4}')
) {
// nothing
} else {
channel.status = 'Offline'