aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/adhoc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/adhoc')
-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