aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-11 12:17:57 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-11 12:17:57 +0100
commitbca433db6ef0968cda8f7e5e181aa48c87448932 (patch)
treec282fd2e73771efd0c9e5d4d76d2b3c01d8cb086 /plugins
parente53c3dce376d916efc71841ec33dfe8c6c166ace (diff)
downloadprosody-bca433db6ef0968cda8f7e5e181aa48c87448932.tar.gz
prosody-bca433db6ef0968cda8f7e5e181aa48c87448932.zip
mod_adhoc/adhoc.lib: Handle errors according to XEP
Diffstat (limited to 'plugins')
-rw-r--r--plugins/adhoc/adhoc.lib.lua3
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