Thanks to improved gnomish technology, it is now possible to ignore and report players who are spamming you in-game by right clicking their name in the chat interface and selecting “Report Spam”. If a spammer acquires many of these reports, his account will be completely silenced for a short period. During this period, our Game Masters will investigate the submitted reports and may take additional action if it is warranted. Read more about this feature in our Squelch FAQ.
Original post by World of Warcraft Community Site