]> code.delx.au - pymsnt/blobdiff - src/legacy/glue.py
Reject authorisation for new contacts should work now.
[pymsnt] / src / legacy / glue.py
index 4c84a12209408eaa4f6446d6f54ae2ef4f8c4823..176932f247e1a6f743bd5e0d1d48cfaf9cfa9d81 100644 (file)
@@ -17,7 +17,6 @@ import lang
 
 
 
-name = "MSN Transport"   # The name of the transport
 url = "http://msn-transport.jabberstudio.org"
 version = "0.11-dev"         # The transport version
 mangle = True            # XDB '@' -> '%' mangling
@@ -394,6 +393,8 @@ class LegacyConnection(msn.MSNConnection):
        def gotMessage(self, remoteUser, text):
                LogEvent(INFO, self.jabberID)
                source = msn2jid(remoteUser, True)
+               if self.contactTyping.has_key(remoteUser):
+                       del self.contactTyping[remoteUser]
                self.session.sendMessage(self.jabberID, fro=source, body=text, mtype="chat")
                self.session.pytrans.statistics.stats["MessageCount"] += 1
        
@@ -550,6 +551,7 @@ class LegacyList:
                LogEvent(INFO, self.jabberID)
                jid = jid2msn(jid)
                self.session.legacycon.remContact(msn.ALLOW_LIST, jid)
+               self.session.legacycon.remContact(msn.PENDING_LIST, jid)
                self.session.legacycon.addContact(msn.BLOCK_LIST, jid)