diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-08-18 14:38:18 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-08-18 14:38:18 +0100 |
commit | df1abfdd10b291f3d170b2be1a8ce6ffd3b2ccc0 (patch) | |
tree | 2ec60f8983d2ca81c1356cbf4dec73a416b177a0 /plugins/mod_pep.lua | |
parent | 38c448b46053344b862b5f2b6ef551b2bbcf3f20 (diff) | |
download | prosody-df1abfdd10b291f3d170b2be1a8ce6ffd3b2ccc0.tar.gz prosody-df1abfdd10b291f3d170b2be1a8ce6ffd3b2ccc0.zip |
mod_pep: Simplify code
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r-- | plugins/mod_pep.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 50cf3ff1..0d52a2fd 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -253,8 +253,7 @@ end 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 |