Mercurial > prosody-hg
diff plugins/adhoc/mod_adhoc.lua @ 6843:161cccfdf015
Merge 0.10->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 22 Sep 2015 01:31:52 +0200 |
| parents | be87ab2d611c |
| children | 77e59f8057bf |
line wrap: on
line diff
--- a/plugins/adhoc/mod_adhoc.lua Sat Sep 19 17:51:20 2015 +0200 +++ b/plugins/adhoc/mod_adhoc.lua Tue Sep 22 01:31:52 2015 +0200 @@ -34,7 +34,8 @@ reply:tag("feature", { var = "jabber:x:data" }):up(); event.exists = true; else - return origin.send(st.error_reply(stanza, "auth", "forbidden", "This item is not available to you")); + origin.send(st.error_reply(stanza, "auth", "forbidden", "This item is not available to you")); + return true; end elseif node == xmlns_cmd then reply:tag("identity", { name = "Ad-Hoc Commands", @@ -87,7 +88,8 @@ return true end -- User has permission now execute the command - return adhoc_handle_cmd(commands[node], origin, stanza); + adhoc_handle_cmd(commands[node], origin, stanza); + return true; end end end, 500);
