From 95ceeee2a6466448da396fb2f8307d98d143e0d2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 14 Mar 2026 08:31:07 +0000 Subject: Fix cap notifications to comply with ircv3/ircv3-specifications#480. --- src/modules/m_ircv3_capnotify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_ircv3_capnotify.cpp') diff --git a/src/modules/m_ircv3_capnotify.cpp b/src/modules/m_ircv3_capnotify.cpp index 1c5ab7655..172c8d7ac 100644 --- a/src/modules/m_ircv3_capnotify.cpp +++ b/src/modules/m_ircv3_capnotify.cpp @@ -151,8 +151,8 @@ public: void OnCapValueChange(Cap::Capability* cap) override { - // The value of a cap has changed, send CAP DEL and CAP NEW with the new value - Send(cap->GetName(), cap, false); + // We used to send a DEL then a NEW here but IRCv3 PR #480 clarified + // that this behaviour is unnecessary. Send(cap->GetName(), cap, true); } -- cgit v1.3.1-10-gc9f91