There is nothing wrong with telling someone that they are being irritating. A lot of times, people believe they are being witty or helpful when in fact they are merely annoying. Save someone else the pain of enduring their antics. But find a way to do it tactfully.