@xmpp.iq('{%s}query' % __disco_items_ns__)
    def disco_items(self, iq):
        """ Service Discovery: disco#items """

        target = iq.get('to')

        if (0 < target.find('@')):
            # query server info
            query = self.E.query({ 'xmlns': __disco_items_ns__})

        else:
            # query client info
            query = self.E.query({ 'xmlns': __disco_items_ns__})

        return self.iq('result', iq, query, {'from': target})
dataset/ETHPy150Open HenryHu/pybbs/xmppserver.py/XMPPServer.disco_items/swapped operands of `<`