def handle_outbound_message(self, message):
    recipient = message['to_addr']
    text = message['content']
    jid = JID(recipient).userhost()
    if (not self.xmpp_protocol.xmlstream):
        log.err('Outbound undeliverable, XMPP not initialized yet.')
        return False
    else:
        self.xmpp_protocol.reply(jid, text)
def handle_outbound_message(self, message):
    recipient = message['to_addr']
    text = message['content']
    jid = JID(recipient).userhost()
    if (not self.xmpp_protocol.xmlstream):
        log.err('Outbound undeliverable, XMPP not initialized yet.')
        return False
    else:
        self.xmpp_protocol.reply(jid, text)