From c57bb353c4d746a20c3a3d7134efe8737acccd32 Mon Sep 17 00:00:00 2001 From: zefie Date: Mon, 16 Jun 2025 16:21:05 -0400 Subject: [PATCH] allow halfops to set topic --- zefie_wtvp_minisrv/includes/classes/WTVIRC.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js index f366d3c0..83c8b544 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js @@ -1097,7 +1097,7 @@ class WTVIRC { chan_modes = this.channelmodes.get(channel) || []; if (chan_modes.includes('t')) { // Only allow channel operators to change the topic if +t is set - if (!this.channelops.has(channel) || !this.channelops.get(channel).has(socket.nickname)) { + if (!this.channelops.has(channel) || !this.channelops.get(channel).has(socket.nickname) || !this.channelhalfops.has(channel) || !this.channelhalfops.get(channel).has(socket.nickname)) { socket.write(`:${this.servername} 482 ${socket.nickname} ${channel} :You're not channel operator\r\n`); break; }