Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 7862:f5cbbf69cac8
mod_c2s: Clarify that there were no *stream* features to offer
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 25 Jan 2017 10:47:31 +0100 |
parent | 7662:946871f6e3c8 |
child | 7866:b6d99132d7dc |
comparison
equal
deleted
inserted
replaced
7860:49ff363f3a3d | 7862:f5cbbf69cac8 |
---|---|
92 local features = st.stanza("stream:features"); | 92 local features = st.stanza("stream:features"); |
93 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); | 93 hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); |
94 if features.tags[1] or session.full_jid then | 94 if features.tags[1] or session.full_jid then |
95 send(features); | 95 send(features); |
96 else | 96 else |
97 (session.log or log)("warn", "No features to offer"); | 97 (session.log or log)("warn", "No stream features to offer"); |
98 session:close{ condition = "undefined-condition", text = "No features to proceed with" }; | 98 session:close{ condition = "undefined-condition", text = "No stream features to proceed with" }; |
99 end | 99 end |
100 end | 100 end |
101 | 101 |
102 function stream_callbacks.streamclosed(session) | 102 function stream_callbacks.streamclosed(session) |
103 session.log("debug", "Received </stream:stream>"); | 103 session.log("debug", "Received </stream:stream>"); |