adhoc: Include stanza and origin in adhoc event data
authorKim Alvefur <zash@zash.se>
Mon, 06 Mar 2017 15:19:35 +0100
changeset 12433 16a49f04d507
parent 12432 ba5bf1d9d9bd
child 12434 0c1684c65716
adhoc: Include stanza and origin in adhoc event data This allows easier access to these, which could be useful for all sorts of reasons
plugins/adhoc/adhoc.lib.lua
--- 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";