# HG changeset patch # User Daniel Gultsch # Date 1514722553 -3600 # Node ID 150a7bd5904369eeeda79b08c3c2745d4400cb45 # Parent ff1666716d1066aef64243c124ea78f3caca3784 mod_omemo_all_access: fixed some linter warnings diff -r ff1666716d10 -r 150a7bd59043 mod_omemo_all_access/mod_omemo_all_access.lua --- 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