Skip to content

Instantly share code, notes, and snippets.

@TheFlyingCorpse
Last active August 18, 2020 05:57
Show Gist options
  • Save TheFlyingCorpse/c7486531ea74ef897220e0eef4edcc0f to your computer and use it in GitHub Desktop.
Save TheFlyingCorpse/c7486531ea74ef897220e0eef4edcc0f to your computer and use it in GitHub Desktop.
Avoid highlights in WeeChat in a specific channel

Install and add a filter to mute any highlights to the word "rune" in #r/leagueoflegends on quakenet.

Autoset is used to make it persistent.

/script install unhighlight.py
/script install buffer_autoset.py
/autosetbuffer add irc.quakenet.#r/leagueoflegends localvar_set_unhighlight_regex rune

To verify it is added to the autosetbuffer.

This command will not list any active buffers (channels, servers or queries) with it enabled, for that you need to type "/buffer localvar" in that window, results posted to the "weechat" one / main buffer.

/unhighlight list

To test, type in the active channel (not via the weechat one, sadly)

/buffer set localvar_set_unhighlight_regex rune

Verify it is applied by typing and hitting enter on the following, also in the active channel, results posted in the weechat buffer

/buffer localvar

@jkhsjdhjs
Copy link

Thanks for the guide! The command /autosetbuffer is nowadays called /buffer_autoset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment