95 end |
95 end |
96 end |
96 end |
97 if not content then |
97 if not content then |
98 -- FIXME: Fail, no content |
98 -- FIXME: Fail, no content |
99 stream:send(verse.error_reply(stanza, "cancel", "feature-not-implemented", "The specified content is not supported")); |
99 stream:send(verse.error_reply(stanza, "cancel", "feature-not-implemented", "The specified content is not supported")); |
100 return; |
100 return true; |
101 end |
101 end |
102 |
102 |
103 if not transport then |
103 if not transport then |
104 -- FIXME: Refuse session, no transport |
104 -- FIXME: Refuse session, no transport |
105 stream:send(verse.error_reply(stanza, "cancel", "feature-not-implemented", "The specified transport is not supported")); |
105 stream:send(verse.error_reply(stanza, "cancel", "feature-not-implemented", "The specified transport is not supported")); |
106 return; |
106 return true; |
107 end |
107 end |
108 |
108 |
109 stream:send(verse.reply(stanza)); |
109 stream:send(verse.reply(stanza)); |
110 |
110 |
111 jingle.content_tag = content_tag; |
111 jingle.content_tag = content_tag; |