Changeset

3229:0abb73c43bc8

mod_adhoc/adhoc.lib: Handle errors according to XEP
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 Jun 2010 12:17:57 +0100
parents 3228:65e5dfcf5a9f
children 3230:a5c3a82d677e
files plugins/adhoc/adhoc.lib.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/adhoc/adhoc.lib.lua	Fri Jun 11 12:07:25 2010 +0100
+++ b/plugins/adhoc/adhoc.lib.lua	Fri Jun 11 12:17:57 2010 +0100
@@ -38,7 +38,8 @@
 	elseif data.status == "error" then
 		states[sessionid] = nil;
 		stanza = st.error_reply(stanza, data.error.type, data.error.condition, data.error.message);
-		cmdtag = command:cmdtag("canceled", sessionid);
+		origin.send(stanza);
+		return true;
 	else 
 		cmdtag = command:cmdtag("executing", sessionid);
 	end