What should we do about people who complain and love to complain?

What is the psychology of somebody who complains?