diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-06 15:19:35 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-06 15:19:35 +0100 |
commit | 6fea6634dd465da3ac1de24c83d2cd1021009404 (patch) | |
tree | 97e880e1093233079e472de3e834eff6a94e5ef5 /plugins/adhoc | |
parent | dd249a17cab3928cdcd695ff7ecbf4ca6bd227b0 (diff) | |
download | prosody-6fea6634dd465da3ac1de24c83d2cd1021009404.tar.gz prosody-6fea6634dd465da3ac1de24c83d2cd1021009404.zip |
adhoc: Include stanza and origin in adhoc event data
This allows easier access to these, which could be useful for all sorts
of reasons
Diffstat (limited to 'plugins/adhoc')
-rw-r--r-- | plugins/adhoc/adhoc.lib.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/adhoc/adhoc.lib.lua b/plugins/adhoc/adhoc.lib.lua index 4cf6911d..eb91f252 100644 --- a/plugins/adhoc/adhoc.lib.lua +++ b/plugins/adhoc/adhoc.lib.lua @@ -34,6 +34,8 @@ function _M.handle_cmd(command, origin, stanza) local cmdtag = stanza.tags[1] local sessionid = cmdtag.attr.sessionid or uuid.generate(); local dataIn = { + origin = origin; + stanza = stanza; to = stanza.attr.to; from = stanza.attr.from; action = cmdtag.attr.action or "execute"; |