Sun, 20 May 2018 03:14:32 +0200
riddim.plugins.pubsub2room: Don't create an invalid stanza with an empty name
Caught by sanity checks in util.stanza from Prosody trunk
plugins/pubsub2room.lua | file | annotate | diff | comparison | revisions |
--- 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