# HG changeset patch # User Matthew Wild # Date 1534599498 -3600 # Node ID 2e710b618440e66a2c45b87cc1b54d616b8eb0ff # Parent c5a81acc1fc3192ea419c17e1fcaf471061a9417 mod_pep: Simplify code diff -r c5a81acc1fc3 -r 2e710b618440 plugins/mod_pep.lua --- 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