Hey cool!  I might also throw in the default vcard avatar.  =D  I'm going
to attach this to aim and icq as well.  I'll make them all respond as MSN!
 no wait...  ;)

Daniel

-- 
"The most addictive drug in the world is music."
     - The Lost Boyz

> I just added this iq response, so PyMSN respond to vcard-temp request.
>
>
> Gonzalo Barrio
>
> --- src/misciq.py.orig  2005-08-25 16:15:23.022159952 -0300
> +++ src/misciq.py       2005-08-25 16:09:20.860216936 -0300
> @@ -142,6 +142,23 @@
>
>                 debug.log("VCardFactory: Sending vCard for user %s %s" %
> (to, ID))
>
> +               if (to == config.jid):
> +                       iq = Element((None, "iq"))
> +                       iq.attributes["to"] = fro
> +                       iq.attributes["from"] = to
> +                       iq.attributes["id"] = ID
> +                       iq.attributes["type"] = "result"
> +                       vCard = iq.addElement("vCard")
> +                       vCard.attributes["xmlns"] = "vcard-temp"
> +                       FN = vCard.addElement("FN")
> +                       FN.addContent("MSN Transport")
> +                       DESC = vCard.addElement("DESC")
> +                       DESC.addContent("Python MSN gateway")
> +                       URL = vCard.addElement("URL")
> +
> URL.addContent("http://msn-transport.jabberstudio.org";)
> +                       self.pytrans.send(iq)
> +                       return
> +
>                 if(not self.pytrans.sessions.has_key(froj.userhost())):
>                         self.pytrans.discovery.sendIqError(to=fro,
> fro=config.jid, ID=ID, xmlns="vcard-temp", etype="auth", condition="not-
> authorized")
>                         return
>
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
>
>

Reply via email to