From bca433db6ef0968cda8f7e5e181aa48c87448932 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 11 Jun 2010 12:17:57 +0100 Subject: mod_adhoc/adhoc.lib: Handle errors according to XEP --- plugins/adhoc/adhoc.lib.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/adhoc/adhoc.lib.lua b/plugins/adhoc/adhoc.lib.lua index 6193cafd..853992e0 100644 --- a/plugins/adhoc/adhoc.lib.lua +++ b/plugins/adhoc/adhoc.lib.lua @@ -38,7 +38,8 @@ function _M.handle_cmd(command, origin, stanza) 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 -- cgit v1.2.3