Comparison

mod_sasl2_sm/mod_sasl2_sm.lua @ 5749:92ce3859df63

mod_sasl2_sm: Remove duplicate advertisement of stream management (thanks singpolyma)
author Matthew Wild <mwild1@gmail.com>
date Tue, 21 Nov 2023 17:34:54 +0000
parent 5094:c92c87daa09e
comparison
equal deleted inserted replaced
5748:ef3aa6901a93 5749:92ce3859df63
52 end 52 end
53 end, 110); 53 end, 110);
54 54
55 -- Bind 2 integration (for enable) 55 -- Bind 2 integration (for enable)
56 56
57 module:hook("advertise-bind-features", function (event)
58 event.features:tag("feature", { var = xmlns_sm }):up();
59 end);
60
61 module:hook("enable-bind-features", function (event) 57 module:hook("enable-bind-features", function (event)
62 local sm_enable = event.request:get_child("enable", xmlns_sm); 58 local sm_enable = event.request:get_child("enable", xmlns_sm);
63 if not sm_enable then return; end 59 if not sm_enable then return; end
64 60
65 local sm_result; 61 local sm_result;