Just talk to the guy. Say this: "Hey what's up dude? My girlfriend told me you've been flirting with her and i'd appreciate it if you would please stop." If he doesn't respond to the nice approach and still continues then get people to beat his ass lol.