@xmpp.iq('{vcard-temp}vCard')
    def vcard(self, iq):
        """vCard support: the client requests its vCard after
        establishing a session."""

        if iq.get('type') == 'get':
            if (iq.get('to') == None):
                target = iq.get('from')
            else:
                target = iq.get('to')

            form_target = UCache.UCache.formalize_jid(target)
            name = form_target.partition('@')[0]
            user = UserManager.UserManager.LoadUser(name)
            info = user.GetInfo()
            desc = '''\r
Logins: %d\r
Posts: %d\r
Last login: %s from %s\r
Experience: %d\r
Performance: %d\r
Life: %d\r
''' % (info['numlogins'], info['numposts'], info['lastlogintime'], 
        info['lasthost'], info['exp'], info['perf'], info['life'])
            if (info in 'plan'):
                desc += "Plan:\r%s" % (info['plan'].replace('\n', '\r\n'))

            vcard = self.E.vCard({'xmlns': 'vcard-temp'},
                self.E('FN', name),
                self.E('NICKNAME', Util.Util.RemoveTags(info['nick'])),
                self.E('DESC', Util.Util.RemoveTags(desc)))

            if (iq.get('to') == None):
                return self.iq('result', iq, vcard)
            else:
                return self.iq('result', iq, vcard, {'from': iq.get('to')})
dataset/ETHPy150Open HenryHu/pybbs/xmppserver.py/XMPPServer.vcard/swapped operands of `in`