diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-06 00:04:26 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-06 00:04:26 +0200 |
commit | 97f4bd0e64637eec416a7739594b6350f10ad828 (patch) | |
tree | 87986a86a5295f57be163bb4e48aef2309ad55f6 | |
parent | ec9c7c37aafff40c3e077f62b6822cce479ffd1b (diff) | |
download | prosody-97f4bd0e64637eec416a7739594b6350f10ad828.tar.gz prosody-97f4bd0e64637eec416a7739594b6350f10ad828.zip |
mod_pep: Rename variables to avoid name clash [luacheck]
-rw-r--r-- | plugins/mod_pep.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index af94257e..2cadb361 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -207,20 +207,20 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event) if node and user_data and user_data[node] then -- Send the last item local id, item = unpack(user_data[node]); if not requested_id or id == requested_id then - local stanza = st.reply(stanza) + local reply_stanza = st.reply(stanza) :tag('pubsub', {xmlns='http://jabber.org/protocol/pubsub'}) :tag('items', {node=node}) :add_child(item) :up() :up(); - session.send(stanza); + session.send(reply_stanza); return true; else -- requested item doesn't exist - local stanza = st.reply(stanza) + local reply_stanza = st.reply(stanza) :tag('pubsub', {xmlns='http://jabber.org/protocol/pubsub'}) :tag('items', {node=node}) :up(); - session.send(stanza); + session.send(reply_stanza); return true; end elseif node then -- node doesn't exist |