HI

I was wondering what happens if I were to buy a game that is already in my Uplay library again? Since all my games have been bought off of G2a i dont know what happens if I buy the same game again but from Uplay. Does it give me a code or does it add to my library or does it just say f@ck off you already have this game?