Software /
code /
prosody
Changeset
12429:16a49f04d507
adhoc: Include stanza and origin in adhoc event data
This allows easier access to these, which could be useful for all sorts
of reasons
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 06 Mar 2017 15:19:35 +0100 |
parents | 12428:ba5bf1d9d9bd |
children | 12430:0c1684c65716 |
files | plugins/adhoc/adhoc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/adhoc/adhoc.lib.lua Mon Mar 21 12:36:38 2022 +0000 +++ b/plugins/adhoc/adhoc.lib.lua Mon Mar 06 15:19:35 2017 +0100 @@ -34,6 +34,8 @@ 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";