Mercurial > prosody-hg
comparison plugins/mod_s2s/mod_s2s.lua @ 6403:166d1bd8fc38
core.stanza_router, mod_s2s: Move handling of S2S features to mod_s2s from stanza_router
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 09 Sep 2014 15:05:46 +0200 |
| parents | 57d23c26039b |
| children | e5945fb5b71f |
comparison
equal
deleted
inserted
replaced
| 6402:b058486e6a79 | 6403:166d1bd8fc38 |
|---|---|
| 151 module:hook_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza) | 151 module:hook_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza) |
| 152 if session.type == "s2sout" then | 152 if session.type == "s2sout" then |
| 153 -- Stream is authenticated and we are seem to be done with feature negotiation, | 153 -- Stream is authenticated and we are seem to be done with feature negotiation, |
| 154 -- so the stream is ready for stanzas. RFC 6120 Section 4.3 | 154 -- so the stream is ready for stanzas. RFC 6120 Section 4.3 |
| 155 mark_connected(session); | 155 mark_connected(session); |
| 156 return true; | |
| 156 end | 157 end |
| 157 end, -1); | 158 end, -1); |
| 158 end | 159 end |
| 159 | 160 |
| 160 -- Stream is authorised, and ready for normal stanzas | 161 -- Stream is authorised, and ready for normal stanzas |
