# HG changeset patch # User Matthew Wild # Date 1662225607 -3600 # Node ID 9ef5625d0d39dd26fc87ed14289368aa4c9df2bc # Parent baebe745290335bc55eb4043770b58b1e36e0299 mod_sasl2_bind2: Indicate to the client when carbons has been enabled diff -r baebe7452903 -r 9ef5625d0d39 mod_sasl2_bind2/mod_sasl2_bind2.lua --- a/mod_sasl2_bind2/mod_sasl2_bind2.lua Sat Sep 03 18:11:25 2022 +0100 +++ b/mod_sasl2_bind2/mod_sasl2_bind2.lua Sat Sep 03 18:20:07 2022 +0100 @@ -102,7 +102,10 @@ local session, features = event.session, event.features; -- Carbons - session.want_carbons = not not features:get_child("enable", "urn:xmpp:carbons:2"); + if features:get_child("enable", "urn:xmpp:carbons:2") then + session.want_carbons = true; + event.result:tag("enabled", { xmlns = "urn:xmpp:carbons:2" }):up(); + end -- CSI local csi_state_tag = features:child_with_ns("urn:xmpp:csi:0");