From 0aa8dc5a2097f658f7fba8e9e86bfe89cb9788e1 Mon Sep 17 00:00:00 2001 From: zefie Date: Sat, 14 Jun 2025 13:04:27 -0400 Subject: [PATCH] fix channel ban/invite/exempt listing --- zefie_wtvp_minisrv/includes/classes/WTVIRC.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js index d553abee..524dc39a 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js @@ -1324,9 +1324,13 @@ class WTVIRC { 'o': true, // op 'v': true // voice }; - for (let i = 0; i < modeFlags.length; i++) { let c = modeFlags[i]; + // If the mode is 'b', 'e', or 'I', allow it with or without a param + if ((c === 'b' || c === 'e' || c === 'I') && paramIndex >= params.length) { + this.processChannelModeCommand(nickname, channel, c, null); + continue; + } if (c === '+') { adding = true; } else if (c === '-') {