def availableReceived(self, presence):

        room, user = self._getRoomUser(presence)

        if room is None:
            return

        if user is None:
            nick = presence.sender.resource
            user = User(nick, presence.entity)

        # Update user status
        user.status = presence.status
        user.show = presence.show

        if room.inRoster(user):
            self.userUpdatedStatus(room, user, presence.show, presence.status)
        else:
            room.addUser(user)
            self.userJoinedRoom(room, user)
Get the global encoding
dataset/ETHPy150Open ralphm/wokkel/wokkel/muc.py/MUCClient.availableReceived--crossover with--dataset/ETHPy150Open grantbrown/laspy/laspy/header.py/HeaderManager.get_global_encoding