comparison plugins/mod_pep_simple.lua @ 10555:f73947a9bd8c

mod_pep_simple: Ignore unused variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 23 Dec 2019 22:29:13 +0100
parents 0f335815244f
children 39ae08180c81
comparison
equal deleted inserted replaced
10554:e1de29c41259 10555:f73947a9bd8c
83 local d = data[user]; 83 local d = data[user];
84 local notify = recipients[user] and recipients[user][recipient]; 84 local notify = recipients[user] and recipients[user][recipient];
85 if d and notify then 85 if d and notify then
86 for node in pairs(notify) do 86 for node in pairs(notify) do
87 if d[node] then 87 if d[node] then
88 -- luacheck: ignore id
88 local id, item = unpack(d[node]); 89 local id, item = unpack(d[node]);
89 session.send(st.message({from=user, to=recipient, type='headline'}) 90 session.send(st.message({from=user, to=recipient, type='headline'})
90 :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'}) 91 :tag('event', {xmlns='http://jabber.org/protocol/pubsub#event'})
91 :tag('items', {node=node}) 92 :tag('items', {node=node})
92 :add_child(item) 93 :add_child(item)