aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-06 00:04:26 +0200
committerKim Alvefur <zash@zash.se>2018-07-06 00:04:26 +0200
commit6347a3f9bfa374bc954acb95577235293462db4c (patch)
tree87986a86a5295f57be163bb4e48aef2309ad55f6 /plugins
parentd3aabbace35d0119c84b95567d533e2948e3b5f6 (diff)
downloadprosody-6347a3f9bfa374bc954acb95577235293462db4c.tar.gz
prosody-6347a3f9bfa374bc954acb95577235293462db4c.zip
mod_pep: Rename variables to avoid name clash [luacheck]
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua8
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