Software /
code /
prosody
Comparison
plugins/mod_pubsub.lua @ 4795:8a105eb8aeae
mod_pubsub.lua: Fix global access
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 24 Apr 2012 21:42:26 +0200 |
parent | 4343:203137823046 |
child | 5014:b2006c1cfa85 |
comparison
equal
deleted
inserted
replaced
4793:eaa8991998d5 | 4795:8a105eb8aeae |
---|---|
55 | 55 |
56 local data = st.stanza("items", { node = node }); | 56 local data = st.stanza("items", { node = node }); |
57 for _, entry in pairs(results) do | 57 for _, entry in pairs(results) do |
58 data:add_child(entry); | 58 data:add_child(entry); |
59 end | 59 end |
60 local reply; | |
60 if data then | 61 if data then |
61 reply = st.reply(stanza) | 62 reply = st.reply(stanza) |
62 :tag("pubsub", { xmlns = xmlns_pubsub }) | 63 :tag("pubsub", { xmlns = xmlns_pubsub }) |
63 :add_child(data); | 64 :add_child(data); |
64 else | 65 else |