aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-14 08:31:07 +0000
committerGravatar Sadie Powell2026-03-14 08:31:07 +0000
commit95ceeee2a6466448da396fb2f8307d98d143e0d2 (patch)
treeebfd4cedbe126ca201f81d853d72b6d4e7a90ff1 /src/modules
parentFix clearing the help channel modes before re-reading the config. (diff)
downloadinspircd++-95ceeee2a6466448da396fb2f8307d98d143e0d2.tar.gz
inspircd++-95ceeee2a6466448da396fb2f8307d98d143e0d2.tar.bz2
inspircd++-95ceeee2a6466448da396fb2f8307d98d143e0d2.zip
Fix cap notifications to comply with ircv3/ircv3-specifications#480.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_ircv3_capnotify.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}