We shouldn't be editing 3rd party plugins for the sake of upgradability and maintainability. All changes should be undone and an alternative external method should be found to set the messages.