mod_muc_occupant_id: Remove unnecessary check on occupant
authorMaxime “pep” Buquet <pep@bouah.net>
Sun, 14 Jul 2019 19:04:16 +0200
changeset 3634 c05e157d987c
parent 3633 cfe0907808e1
child 3635 d6164ae6179c
mod_muc_occupant_id: Remove unnecessary check on occupant
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();