@xmpp.stanza('presence')
    def presence(self, elem):
        """Presence information may be sent out from the client or
        received from another account."""

        Log.warn("handle presence. me: %r elem: %r" % (self.authJID, elem_to_str(elem)))
        if self.authJID == elem.get('from'):
            if (elem.get('to') == None or (not self.authJID.match_bare(elem.get('to')))):
                return self.send_presence(elem)
        self.recv_presence(elem)
dataset/ETHPy150Open HenryHu/pybbs/xmppserver.py/XMPPServer.presence/original