equal
deleted
inserted
replaced
10 -- Advertise what we can do |
10 -- Advertise what we can do |
11 |
11 |
12 module:hook("advertise-sasl-features", function(event) |
12 module:hook("advertise-sasl-features", function(event) |
13 local bind = st.stanza("bind", { xmlns = xmlns_bind2 }); |
13 local bind = st.stanza("bind", { xmlns = xmlns_bind2 }); |
14 local inline = st.stanza("inline"); |
14 local inline = st.stanza("inline"); |
15 module:fire_event("advertise-bind-features", { origin = event.session, features = inline }); |
15 module:fire_event("advertise-bind-features", { origin = event.origin, features = inline }); |
16 bind:add_direct_child(inline); |
16 bind:add_direct_child(inline); |
17 |
17 |
18 event.features:add_direct_child(bind); |
18 event.features:add_direct_child(bind); |
19 end, 1); |
19 end, 1); |
20 |
20 |