From b4855ba408ce4427c09621238d512745b75acfb3 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 12 Apr 2021 15:36:41 -0700 Subject: [PATCH] Fix for #2347 --- meshrelay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshrelay.js b/meshrelay.js index 90d9e9a7..ed9a9049 100644 --- a/meshrelay.js +++ b/meshrelay.js @@ -689,7 +689,7 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) { if (typeof x.action == 'string') { if ((x.action == 'chat') && (typeof x.msg == 'string')) { out = utcDate.toUTCString() + ', ' + (((flags & 2) ? '--> ' : '<-- ') + x.msg + '\r\n'); } else if ((x.action == 'file') && (typeof x.name == 'string') && (typeof x.size == 'number')) { out = utcDate.toUTCString() + ', ' + (((flags & 2) ? '--> ' : '<-- ') + "File Transfer" + ', \"' + x.name + '\" (' + x.size + ' ' + "bytes" + ')\r\n'); } - } else { out = utcDate.toUTCString() + ', ' + data + '\r\n'; } + } else if (x.ctrlChannel == null) { out = utcDate.toUTCString() + ', ' + data + '\r\n'; } } catch (ex) { out = utcDate.toUTCString() + ', ' + data + '\r\n'; }