Skip to content

Conversation

@dbohdan
Copy link

@dbohdan dbohdan commented Oct 25, 2025

Script info

  • Script name: censor
  • Version: 0.2.0
  • Requirements
  • Min WeeChat version: 
  • Script tags: censor, ignore, regex

Description

This script provides an alternative to /ignore and to triggers that modify logs. It hides the contents of undesirable messages (detected by a regex on the nick or the message text) using color. The name comes from the censored look it gives messages. The script itself is simple and can be replaced with regex triggers. I think the value lies in the idea.

Checklist (new script)

  • Single commit, single file added
  • Commit message: New script name.py: short description…
  • No similar script already exists
  • Name: max 32 chars, only lower case letters, digits and underscores
  • Unique name, does not already exist in repository
  • No shebang on the first line
  • Comment in script with name/pseudo, e-mail and license using SPDX tags (see Contributing guide)
  • Only English in code/comments
  • Pure WeeChat API used, no extra API
  • Function hook_url, hook_process or hook_process_hashtable is used for any blocking call
  • For Python script: works with Python 3 (Python 2 support is optional)
  • Score 100 / 100 displayed by weechat-script-lint

Checklist (script update)

  • Author has been contacted
  • Single commit, single file added
  • Commit message format: script_name.py X.Y: …
  • Script version and Changelog have been updated
  • For Python script: works with Python 3 (Python 2 support is optional)
  • Score 100 / 100 displayed by weechat-script-lint

Checklist (script deletion)

  • Author has been contacted
  • Single commit, single file deleted
  • Commit message format: Remove script name.py with reasons in description

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant