]> code.delx.au - pymsnt/commitdiff
Fixed name error with chunking messages.
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Thu, 23 Mar 2006 09:10:58 +0000 (09:10 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Thu, 23 Mar 2006 09:10:58 +0000 (09:10 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@129 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/tlib/msn/msnw.py

index 6b58f50ed0097698ccb2621451218dc5bce07e87..55e02ffcf80f5e74ba30afbbdda8ab6ceb68b38b 100644 (file)
@@ -546,7 +546,7 @@ class SwitchboardSessionBase(msn.SwitchboardClient):
                                guid = msn.random_guid()
                                while chunk < chunks:
                                        offset = chunk * MSNConnection.MAXMESSAGESIZE
-                                       text = message[offset : offset + MSNConnection.MAXMESSAGESIZE]
+                                       text = text[offset : offset + MSNConnection.MAXMESSAGESIZE]
                                        message = msn.MSNMessage(message=str(text.replace("\n", "\r\n").encode("utf-8")))
                                        message.ack = msn.MSNMessage.MESSAGE_NACK
                                        if chunk == 0: