diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index f505c3155..7b8d3e991 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -1050,7 +1050,7 @@ process_presence(From, Nick, drop -> {next_state, normal_state, StateData}; #xmlel{attrs = Attrs} = Packet -> - Type = xml:get_attr_s(<<"xml:lang">>, Attrs), + Type = xml:get_attr_s(<<"type">>, Attrs), Lang = xml:get_attr_s(<<"xml:lang">>, Attrs), StateData1 = case Type of <<"unavailable">> ->