plugins/mod_pep.lua
changeset 9208 2e710b618440
parent 9200 041a731c7a62
child 9541 07665733b332
--- 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