adamjames dot github dot io "Still a better TLD than .blog"

Fixing WeeChat's JOIN/PART notifications

WeeChat is a brilliant console-based IRC client. It's like a more modern irssi, configured with a nice interface and some great features "out of the box". It's also pretty configurable:

One pet niggle of mine has always been WeeChat's handling of JOIN/PART messages. If you're in a large/busy channel, it can be distracting to constantly see JOIN/PART messages from users who are not actively talking - but switching them off entirely removes some useful conversational context.

I was planning on writing a plugin to fix this, but thankfully I found a satisfactory solution to the problem already existed, which will selectively filter JOIN/PART notifications. To enable it, use following commands:

/set irc.look.smart_filter on

/filter add irc_smart * irc_smart_filter *

Adjust the filter delay with /set irc.look.smart_filter_delay n, where n is an integer. For example, /set irc.look.smart_filter_delay 5. JOIN/PART notifications will be shown for users that spoke within the past n minutes.