Changeset

2858:150a7bd59043

mod_omemo_all_access: fixed some linter warnings
author Daniel Gultsch <daniel@gultsch.de>
date Sun, 31 Dec 2017 13:15:53 +0100
parents 2857:ff1666716d10
children 2859:22e11645a895
files mod_omemo_all_access/mod_omemo_all_access.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_omemo_all_access/mod_omemo_all_access.lua	Sat Dec 30 23:53:41 2017 +0100
+++ b/mod_omemo_all_access/mod_omemo_all_access.lua	Sun Dec 31 13:15:53 2017 +0100
@@ -27,7 +27,7 @@
 			local item = payload.tags[1];
 			if item and item.name == 'item' then
 				requested_id = item.attr.id;
-			end 
+			end
 		end
 		if node and string.sub(node,1,string.len(white_listed_namespace)) == white_listed_namespace then
 			local user = stanza.attr.to and jid_bare(stanza.attr.to) or session.username..'@'..session.host;
@@ -35,13 +35,13 @@
 			if user_data and user_data[node] then
 				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);
 					module:log("debug","provided access to omemo node",node)
 					return true;
 				end