Sun, 02 Oct 2011 00:30:12 +0200
plugins.jingle: Stop event propagation after returning errors
plugins/jingle.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/jingle.lua Fri Sep 30 05:17:06 2011 +0200 +++ b/plugins/jingle.lua Sun Oct 02 00:30:12 2011 +0200 @@ -97,13 +97,13 @@ if not content then -- FIXME: Fail, no content stream:send(verse.error_reply(stanza, "cancel", "feature-not-implemented", "The specified content is not supported")); - return; + return true; end if not transport then -- FIXME: Refuse session, no transport stream:send(verse.error_reply(stanza, "cancel", "feature-not-implemented", "The specified transport is not supported")); - return; + return true; end stream:send(verse.reply(stanza));