message.Timestamp = new Date(im.MessageBlock.Timestamp);
message.Message = Utils.bytesWithTrailingNullByteToString(im.MessageBlock.Message);
message.Offline = InstantMessageOnline.get((int)im.MessageBlock.Offline);
message.BinaryBucket = im.MessageBlock.BinaryBucket;
onIM.raiseEvent((new InstantMessageEventArgs(message, simulator)));
}
}
}