mod_muc_occupant_id/mod_muc_occupant_id.lua
changeset 3779 d60efdb947fd
parent 3674 6a437d6eb69f
child 3833 f20a5d28910f
equal deleted inserted replaced
3778:20346da6d241 3779:d60efdb947fd
    33 end
    33 end
    34 
    34 
    35 local function handle_stanza(event)
    35 local function handle_stanza(event)
    36 	local stanza, occupant = event.stanza, event.occupant;
    36 	local stanza, occupant = event.stanza, event.occupant;
    37 
    37 
    38 	if stanza.name == "presence" and stanza.attr.type == "unavailable" then -- not required here
       
    39 		return;
       
    40 	end
       
    41 
       
    42 	-- TODO: Handle MAM.
    38 	-- TODO: Handle MAM.
    43 
    39 
    44 	-- strip any existing <occupant-id/> tags to avoid forgery
    40 	-- strip any existing <occupant-id/> tags to avoid forgery
    45 	stanza:remove_children("occupant-id", xmlns_occupant_id);
    41 	stanza:remove_children("occupant-id", xmlns_occupant_id);
    46 
    42