X-Git-Url: https://code.delx.au/pymsnt/blobdiff_plain/cdc1223ee42d056ecf7b7334aa921f6c1583b56e..7b5368b86bbb09516dd47ef8a651b893ac291df3:/src/legacy/glue.py diff --git a/src/legacy/glue.py b/src/legacy/glue.py index 2655360..efcd32f 100644 --- a/src/legacy/glue.py +++ b/src/legacy/glue.py @@ -18,7 +18,7 @@ import lang url = "http://msn-transport.jabberstudio.org" -version = "0.11.2-dev" # The transport version +version = "0.11.3-dev" # The transport version mangle = True # XDB '@' -> '%' mangling id = "msn" # The transport identifier @@ -36,6 +36,7 @@ defaultAvatar = avatar.AvatarCache().setAvatar(defaultAvatarData) def reloadConfig(): msn.MSNConnection.GETALLAVATARS = config.getAllAvatars + msn.MSNConnection.BINDADDRESS = config.host msn.setDebug(config._debugLevel >= 4) def isGroupJID(jid): @@ -483,8 +484,8 @@ class LegacyConnection(msn.MSNConnection): if not (c and msnContact): return show, ptype = state2presence(msnContact.status) - status = msnContact.personal.decode("utf-8") - screenName = msnContact.screenName.decode("utf-8") + status = msnContact.personal.decode("utf-8", "replace") + screenName = msnContact.screenName.decode("utf-8", "replace") c.updateNickname(screenName, push=False) c.updatePresence(show, status, ptype, force=True)