I hope you bought yourself another drink and continued to have a great time. People who feel insecure in themselves always try to pull down others with confidence to make themselves feel better, it's sad really.
When people say these things just understand how irrelevant the person is. Who cares what they have to say? Within 10 minutes you shouldn't even remember it happened.