Congratulations. You played yourself. That will show her, how dare she be immature and unready, then learn a lesson and try to do better for herself. The good news is it sounds like she really dodged a bullet though so you did her a favor.
Depends on situation. If she knew how he felt, went out with the dbag, and is coming to him only as a rebound, he did the right thing telling her to get lost.
I could write pages here about this subtext in this post but... Yes, there's context to anything, but his words make a clear picture. He "was friend zoned" for 2 years." She put him- he feels wrong. He "summoned his courage" he's trying to make up for beong made to feel that way, supported by his use of "not interested" as opposed to a more gentle way to rebuffband console a friend going through a breakup on the rebound. Supported by friendzone. We know he still liked her because if he didn't they would just be friends, she wouldn't be "keeping him in the friend zon" he would say they were friends. So he likes her still, is bitter over being turned down 2 years ago but too timid to ask for what he wants or leave, when she's at her weakest he finally sees a chance to feel big- and since he still likes her he played himself either way because after 2 years of hanging out waiting for a chance he got it and blew it so he could get back at her in his mind. He played himself.
It sounds like she just 1) doesn't want to be alone and 2) wants to either get back at the ex/is trying to make him jealous because she got dumped. You made the right choice.
*like*
*jumps off Niagara Falls*