plugins.jingle: Stop event propagation after returning errors

Sun, 02 Oct 2011 00:30:12 +0200

author
Kim Alvefur <zash@zash.se>
date
Sun, 02 Oct 2011 00:30:12 +0200
changeset 220
5e5af66b03fd
parent 219
ce8ed17710cb
child 221
efb4f60ba36e

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));

mercurial