plugins/pubsub2room.lua

changeset 142
211fa13c7ca2
parent 141
be0754cc0ede
child 145
565c0c43b063
--- a/plugins/pubsub2room.lua	Sun May 20 03:13:23 2018 +0200
+++ b/plugins/pubsub2room.lua	Sun May 20 03:14:32 2018 +0200
@@ -52,7 +52,7 @@
 		local conf = config[event.from .. "#" .. event.node];
 		if not conf then return end
 		local room = bot.rooms[conf.room];
-		local data = st.stanza(""):tag("id"):text(event.item.attr.id);
+		local data = st.stanza("data"):tag("id"):text(event.item.attr.id);
 		local entry = event.item and new_extractor(event.item.tags[1], data)
 
 		if not conf or not entry or not room then return end

mercurial