# HG changeset patch # User Kim Alvefur # Date 1526778872 -7200 # Node ID 211fa13c7ca27c4eae8e01b5aa82e905835d6782 # Parent be0754cc0ede936603a77807c471bbb1d563e182 riddim.plugins.pubsub2room: Don't create an invalid stanza with an empty name Caught by sanity checks in util.stanza from Prosody trunk diff -r be0754cc0ede -r 211fa13c7ca2 plugins/pubsub2room.lua --- 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