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: