Hi,

When I'm changing presence to one without "status", my friends from
MSN still can see my old personal message. I think the problem is,
because if my personal message is empty, pyMSNt is sending UUX with
empty 'data', and I think it should send <Data><PSM></
PSM><CurrentMedia></CurrentMedia></Data>

my fix: msn.py:1934

def changePersonalMessage(self, personal):
        """
        Used to change your personal message.

        @param personal: the new screen name

        @return: A Deferred, the callback for which will be called
                 when the server acknowledges the change.
                 The callback argument will be a tuple of 1 element,
                 the personal message.
        """

        id, d = self._createIDMapping()
        data = "<Data><PSM>" + personal + "</PSM><CurrentMedia></
CurrentMedia></Data>"
        self.sendLine("UUX %s %s" % (id, len(data)))
        self.transport.write(data)
        def _cb(r):
            self.factory.personal = personal
            return (personal,)
        return d.addCallback(_cb)


PS: I'm not a python developer (maybe "yet" ;) ), I'm only using MSN
and like to testing and discovering why.... so you must try it first,
because I'm not sure if it's ok.

Best regards,
Pedros
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"py-transports" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/py-transports?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to