249:00891a675634 | 250:a5ac643a7fd6 |
---|---|
1 local verse = require "verse"; | |
2 | |
1 local xmlns_bind = "urn:ietf:params:xml:ns:xmpp-bind"; | 3 local xmlns_bind = "urn:ietf:params:xml:ns:xmpp-bind"; |
2 | 4 |
3 function verse.plugins.bind(stream) | 5 function verse.plugins.bind(stream) |
4 local function handle_features(features) | 6 local function handle_features(features) |
5 if stream.bound then return; end | 7 if stream.bound then return; end |
21 end); | 23 end); |
22 end | 24 end |
23 stream:hook("stream-features", handle_features, 200); | 25 stream:hook("stream-features", handle_features, 200); |
24 return true; | 26 return true; |
25 end | 27 end |
26 |