diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-06-11 12:17:57 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-06-11 12:17:57 +0100 |
commit | bca433db6ef0968cda8f7e5e181aa48c87448932 (patch) | |
tree | c282fd2e73771efd0c9e5d4d76d2b3c01d8cb086 | |
parent | e53c3dce376d916efc71841ec33dfe8c6c166ace (diff) | |
download | prosody-bca433db6ef0968cda8f7e5e181aa48c87448932.tar.gz prosody-bca433db6ef0968cda8f7e5e181aa48c87448932.zip |
mod_adhoc/adhoc.lib: Handle errors according to XEP
-rw-r--r-- | plugins/adhoc/adhoc.lib.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |