First off, do not bring your sex life into the office, even in internet chat. Both of you should have been reprimanded for doing that.
Second, I doubt he really respected your opinion, not if he ratted you out to management but then, you have not really explained if he did or did not. If not, I do not see why you even care, more so if he does not even know who you are.
Third, if he does know who you are and vice-versa, did you just find out about him being gay in that chat? That is something you are supposed to know BEFORE you make friends with someone or at least at the beginning of the friendship.
Fourth, I saw no discriminatory remarks on your part. If the other guy construed it that way, then it is his own fault.