Software /
code /
prosody
Diff
plugins/mod_pep.lua @ 9205:2e710b618440
mod_pep: Simplify code
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 18 Aug 2018 14:38:18 +0100 |
parent | 9197:041a731c7a62 |
child | 9538:07665733b332 |
line wrap: on
line diff
--- a/plugins/mod_pep.lua Sat Aug 18 14:33:49 2018 +0100 +++ b/plugins/mod_pep.lua Sat Aug 18 14:38:18 2018 +0100 @@ -253,8 +253,7 @@ local function resend_last_item(jid, node, service) local ok, id, item = service:get_last_item(node, jid); - if not ok then return; end - if not id then return; end + if not (ok and id) then return; end service.config.broadcaster("items", node, { [jid] = true }, item); end