Is forgiveness for the self or for the one who behaved badly?
We have to make a distinction here between what forgiving is and what it accomplishes, or the consequences of forgiving. Because forgiveness is a moral virtue, it always is for the other. Why? This is because the moral virtues, whether it is justice or patience or kindness, flow out from the person to others. It is the same when forgiving another person. Yet, one consequence can be self-healing. Thus, the self benefits by being good to another person who was unfair. Forgiveness is about the other person and so is for that person. Your doing this to achieve an inner peace is one reasonable goal of forgiving, as are other goals such as wanting to aid the other and to improve a relationship.