]> code.delx.au - pymsnt/blobdiff - src/tlib/msn/msn.py
Messages sent to offline contacts should be bounced properly now.
[pymsnt] / src / tlib / msn / msn.py
index e03aa87e3814797600eb7013a503ef13bac02aa9..199308621419af977b479860fbbc7990e1976328 100644 (file)
@@ -813,9 +813,9 @@ class MSNEventBase(LineReceiver):
         if len(cmd) != 3: raise MSNProtocolError, "Invalid Command, %s" % repr(cmd)
         if cmd.isdigit():
             id = params.split(' ')[0]
-            if id.isdigit() and self.ids.has_key(id):
+            if id.isdigit() and self.ids.has_key(int(id)):
                 id = int(id)
-                self.ids[id].errback(int(cmd))
+                self.ids[id][0].errback(int(cmd))
                 del self.ids[id]
                 return
             else:       # we received an error which doesn't map to a sent command