We do, actually, have a prevention method for this. If it is happening right in front of a moderator's eyes, they can check every message sent in the past few minutes through /mod log and see who truly sent the message.
If this were to happen to a player and slip under a moderator's radar...