Changeset

3630:c05e157d987c

mod_muc_occupant_id: Remove unnecessary check on occupant
author Maxime “pep” Buquet <pep@bouah.net>
date Sun, 14 Jul 2019 19:04:16 +0200
parents 3629:cfe0907808e1
children 3631:d6164ae6179c
files mod_muc_occupant_id/mod_muc_occupant_id.lua
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();