kabaka / weechat-self-censor

Forbid certain words in outgoing messages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WeeChat Self-Censor Script

Forbid the inclusion of certain text in outgoing messages.

Note: Documentation is a bit lacking at the moment. Hang tight.

Usage

Simply set the appropriate options and the script will operate on its own.

  • plugins.var.ruby.self-censor.censored_buffers - Comma-separated list of buffers in which to apply censorship. Wildcards are supported. Start a name with ! to exclude.
  • plugins.var.ruby.self-censor.forbidden_words - Comma-separated list of words to forbid in outgoing messages. Wildcards are supported.
  • plugins.var.ruby.self-censor.forbidden_word_color - Color of forbidden words in output.

Important: Only /\w+/ is checked while scanning for forbidden words. This means that you cannot include punctuation or spaces in the words you forbid. This limitation may be removed in future versions.

Bypassing

Presently, only plain messages and /me are checked for forbidden words. Because of this, you can bypass the script by using /msg.

This is intentional, as you may need to send a forbidden word for some reason, and you do not want to add an exclusion. This might be useful if you forbid sending your password, but still want to be able to send it to network services.

About

Forbid certain words in outgoing messages.

License:MIT License


Languages

Language:Ruby 100.0%