# HG changeset patch
# User Maxime “pep” Buquet <pep@bouah.net>
# Date 1563123856 -7200
# Node ID c05e157d987c1b90c7c82dc9aad3cf27e17ec9cf
# Parent  cfe0907808e13f2a1945ba2539e95b3ad9fe8de5
mod_muc_occupant_id: Remove unnecessary check on occupant

diff -r cfe0907808e1 -r c05e157d987c mod_muc_occupant_id/mod_muc_occupant_id.lua
--- a/mod_muc_occupant_id/mod_muc_occupant_id.lua	Sun Jul 14 18:45:10 2019 +0200
+++ b/mod_muc_occupant_id/mod_muc_occupant_id.lua	Sun Jul 14 19:04:16 2019 +0200
@@ -40,8 +40,6 @@
 	-- strip any existing <occupant-id/> tags to avoid forgery
 	stanza:remove_children("occupant-id", xmlns_occupant_id);
 
-	if not occupant then return; end
-
 	local unique_id = occupant.sessions[stanza.attr.from]
 		:get_child("occupant-id", xmlns_occupant_id)
 		:get_text();