Changeset

220:5e5af66b03fd

plugins.jingle: Stop event propagation after returning errors
author Kim Alvefur <zash@zash.se>
date Sun, 02 Oct 2011 00:30:12 +0200
parents 219:ce8ed17710cb
children 221:efb4f60ba36e
files plugins/jingle.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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));