|
PyMSNt Screenname for Google Talk users: msg#00147network.jabber.py-transports
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I already talked with James about the functionality to fall back on the first part of the VCARD Full Name when there is no Nickname available to use as screen name on MSN. I promised it to write a little patch for it, and so here it is. Applying it will make it more attractive for google talk users to use a msn-transport. Regards, Maarten -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEFq+eXjGr8JbE19URAm2xAJwJYEhSlDvI7HSrsxy4hqmkoR/f2gCdH0hP gkT1hqaM48s2ldTJfJIoueY= =hBq0 -----END PGP SIGNATURE----- 51d50 < self.fullname = "" 125,126d123 < if e.name == "FN": < self.updateFullname(e.__str__()) 136,143d132 < < if not self.nickname: < self.nickname = self.fullname.split()[0] #Use first name of Full Name if there is no nickname < if not self.nickname: < j = jid.intern(self.jabberID) #Otherwise use user part of JID < self.nickname = j.user < self.setStatus(self.show, self.status) < 157,159c146,149 < < def updateFullname(self, fullname): < self.fullname = fullname --- > if not self.nickname: > j = jid.intern(self.jabberID) > self.nickname = j.user > self.setStatus(self.show, self.status) _______________________________________________ py-transports mailing list py-transports@xxxxxxxxxxxxxxxxx http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: PyMSNt errors: 00147, James Bunton |
|---|---|
| Next by Date: | Re: Problems with PyMSNt + ejabberd-1.0.0: 00147, James Bunton |
| Previous by Thread: | So... Re: "message only sent after next message"i: 00147, Daniel Henninger |
| Next by Thread: | Re: PyMSNt Screenname for Google Talk users: 00147, Alexey Nezhdanov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |