]> code.delx.au - pymsnt/blobdiff - src/tlib/msn/msn.py
If the SLPLink is terminated due to an error, discard any data. This stops an excepti...
[pymsnt] / src / tlib / msn / msn.py
index 3a13f5bbe021391cf0cce81b4e1794c5cbb07bd6..0fadf58695aa82c8d59744fb4749c14917ba20cb 100644 (file)
@@ -2033,7 +2033,7 @@ class NotificationFactory(ReconnectingClientFactory):
     screenName = ''
     password = ''
     passportServer = 'https://nexus.passport.com/rdr/pprdr.asp'
-    status = 'FLN'
+    status = 'NLN'
     protocol = NotificationClient
     maxRetries = 5
 
@@ -2877,6 +2877,7 @@ class SLPLink_FileSend(SLPLink_Send):
             if slpMessage.status == "603":
                 self.acceptDeferred.callback((False,))
             if MSNP2PDEBUG: log.msg("SLPLink is over due to decline, error or BYE")
+            self.data = ""
             self.killLink()
 
     def wait_data_ack(self, packet):
@@ -3066,6 +3067,7 @@ errorCodes = {
     301 : "Too many FND responses",
     302 : "Not logged in",
 
+    400 : "Message not allowed",
     402 : "Error accessing contact list",
     403 : "Error accessing contact list",