Goal

On live chat sometimes there are messages which contain spam. There has been no standard how to handle them, and the handling in different clients is poor as a result.

Requirements

Hide, or remove highlight tag, from messages which

  • contain more than four nicknames in one message
  • are repeated with the same content numerous times in a given channel
  • are of a 'notice' message type

Implementation notes

Find whether this feature is available for your IRC client in the table below.

Clients matrix (ABC order)

client name no beep for NOTICE highlight block nick spam block highlightwin install hint comment
(!) adiirc (?) X-( X-( (?) n/a Tempesta #d@o
(!) ?hexchat X-( :) masshighlightignore.lua :) massnickspamignore.lua (?) put script into %appdata%\HexChat\addons or ~/.config/hexchat/addons CodeMouse92__; "Hoolootwo" *
:) irssi :) :) mass_hilight_blocker.pl :) mass nickspam blocker.pl :) put script into ~/.irssi/scripts/autorun; '/run ~/.irssi/scripts/autorun/<script name>.pl'
(!) KVIrc :) configurable (?) (?) (?) n/a n/a
(!) Matrix (?) {i} bug 2312 {i} bug 2312 (?) n/a n/a
(!) Miranda X-( flashes window in taskbar (?) (?) (?) n/a n/a
(!) Pidgin (?) X-( X-( (?) n/a n/a
(!) Quassel :) {i} bug 1440 {i} bug 1440 :) chat monitor n/a n/a
(!) smuxi X-( {i} bug 1108 {i} bug 1108 (?) n/a Maarten_ #d@o
(!) WeeChat (?) :) mass_hl_blocker.pl in /script :) mass nickspam blocker.pl (?) n/a n/a
(!) xchat X-( :) masshighlightignore-004.pl (!) (?) n/a n/a
(!) ZNC n/a n/a (!) n/a n/a n/a
(!) client (?) (?) (?) (?) n/a n/a

(?) = we don't know what this irc client does

X-( = someone should file a bug

{i} = bug filed, patches welcome

(!) = script writing welcome (no bug present because this is not in the client core)

Legend:

  • disable ping/flash/beep on NOTICEs? -- NOTICE is a bot message and should not have a special priority.
  • disable highlights from MASS NICK SPAM?
  • hide MASS NICK SPAM from screen completely? -- Unlike the previous option, in this section, scripts hide messages with nick spam entirely, even if they're not highlights (that is, even if they do not contain your own nick). This method only works for hiding the messages which have more than N nicks in them. For instance, a spammer writing 'nick: ' with only ONE nick per line would not be caught by these scripts, as it is not trivial (unless noted otherwise) to programmatic ally distinguish these messages from a legitimate highlight.
  • stop scrolling up for highlights? -- This is to avoid "someone pinged me? ::scrolls up:: OH:(" frustration, resulting in desire to write that down to the channel.

Hexchat is a live chat client for the internet relay chat (IRC) protocol, see the official home page.

1) masshighlightignore.lua disables notifications of messages containing over 4 nicks. This filters out notifications from many spammers.

Put the script into %appdata%\HexChat\addons or ~/.config/hexchat/addons .

Svetlana has modified the original -- added licence header.

2) massnickspamignore.lua removes messages containing over four nicks from the screen. This removes messages from many spammers.

Download the script into %appdata%\HexChat\addons or ~/.config/hexchat/addons .

Svetlana has modified the original -- added licence header and commented out the line which prints the message out.

Link to original: https://github.com/TingPing/plugins/blob/master/HexChat/masshighlightignore.lua


How you can help

  • Test the scripts and features documented above.
  • Improve the documentation above: update and expand it. Add a missing chat client if you have one.
  • When a feature is marked as missing, implement it. There usually is someone available for help.

Contact