Prevented modifying existing chat messages

This should prevent the last 40 chat messages from being modified.