Good on him for catching them out, but they should've received more severe a punishment for such blatant and lazy cheating.
And explaining how you caught them doesn't make them less likely to cheat in the future, it simply makes them less likely to be caught doing so.