From 639103b821010ff8e8b55189dd5af6d6db94489a Mon Sep 17 00:00:00 2001 From: zefie Date: Mon, 16 Jun 2025 18:39:20 -0400 Subject: [PATCH] remove some logging from non-debug --- zefie_wtvp_minisrv/includes/classes/WTVIRC.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js index 3d0e348e..4f6bf736 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js @@ -330,8 +330,7 @@ class WTVIRC { } for (const [channel, users] of this.channels.entries()) { const modes = this.channelmodes.get(channel) || []; - for (const user of users) { - console.log(`Sending SJOIN for user ${user} in channel ${channel}`); + for (const user of users) { let userPrefix = ''; if ((this.channelops.get(channel) || new Set()).has(user)) { userPrefix = '@'; @@ -1018,7 +1017,9 @@ class WTVIRC { socket.uniqueId = prefix; } else { console.warn(`Socket uniqueId mismatch: ${socket.uniqueId} !== ${prefix}`); - console.log(line); + if (this.debug) { + console.log(line); + } continue; } }