🏠 Go home.

ERC Filtering for Sanity

Published on

Hipchat's XMPP gateway throws away a lot of useful context when it comes to handling automated messages from e.g. Nagios and build systems. I recreate the most important of these, Nagios alert coloring, with this modify hook, which match regular expressions and apply a face to the entire line. A big hammer, but it works for this screw.

During a huge outage situation, I often find myself overwhelmed by the torrent of incoming alerts, and having the ability to filter them out and focus directly on the conversations that are occurring is the best way to handle them. In situations like these, I can just do M-x toggle-filter-nagios to temporarily quash any Nagios messages from being pushed in to my ERC buffers.

These two functionalities are bit brutish but show a good example of how to do erc-insert hooks to modify and quash incoming text.

Respond to this note:

Ryan Rix is a privacy rights advocate and net-art wannabe. Reach them on the Fediverse as @rrix@cybre.space, twitter as @rrrrrrrix, via email to ryan@whatthefuck.computer or on Facebook or on Matrix as @rrix:whatthefuck.computer.