def handle_message(self, msg):
        self.logger.info("Jabber from %s (%s): %s", msg['from'].bare, msg['type'], msg['body'])

        # Only handle one-to-one conversations, and only if authorized
        # users have been defined
        if msg['type'] in ('chat', 'normal') and hasattr(cfg, 'JABBER_AUTHORIZED_IDS'):
            # Check if user is authorized
            if msg['from'].bare in cfg.JABBER_AUTHORIZED_IDS:
                if msg['body'].lower() == 'status':
                    # Generate status report
                    states = []
                    for door in cfg.GARAGE_DOORS:
                        name = door['name']
                        state = self.door_states[name]
                        how_long = time.time() - self.time_of_last_state_change[name]
                        states.append("%s: %s (%s)" % (name, state, format_duration(how_long)))
                    response = ' / '.join(states)
                else:
                    # Invalid command received
                    response = "I don't understand that command. Valid commands are: status"
                self.logger.info("Replied to %s: %s", msg['from'], response)
                msg.reply(response).send()
            else:
                self.logger.info("Ignored unauthorized user: %s", msg['from'].bare)
Raise an exception corresponding to the specified CULA status
dataset/ETHPy150Open rllynch/pi_garage_alert/bin/pi_garage_alert.py/Jabber.handle_message--crossover with--dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/cula.py/culaCheckStatus