comparison plugins/mod_presence.lua @ 10556:79fe4ed1332b

mod_presence: Ignore an unused variable [luacheck] Not sure if it should be unused, hence the TODO
author Kim Alvefur <zash@zash.se>
date Mon, 23 Dec 2019 22:30:21 +0100
parents f0e9e5bda415
children 0cda5d597607
comparison
equal deleted inserted replaced
10555:f73947a9bd8c 10556:79fe4ed1332b
190 end 190 end
191 elseif stanza.attr.type == "unsubscribed" then 191 elseif stanza.attr.type == "unsubscribed" then
192 -- 1. send unavailable 192 -- 1. send unavailable
193 -- 2. route stanza 193 -- 2. route stanza
194 -- 3. roster push (subscription = from or both) 194 -- 3. roster push (subscription = from or both)
195 -- luacheck: ignore 211/pending_in
196 -- Is pending_in meant to be used?
195 local success, pending_in, subscribed = rostermanager.unsubscribed(node, host, to_bare); 197 local success, pending_in, subscribed = rostermanager.unsubscribed(node, host, to_bare);
196 if success then 198 if success then
197 if subscribed then 199 if subscribed then
198 rostermanager.roster_push(node, host, to_bare); 200 rostermanager.roster_push(node, host, to_bare);
199 end 201 end