<commit_before># Clever Ignore

## A clever way to ignore users on IRC

#Introduction
Clever ignore is an irssi script that allows to ignore users with a twist
It allows for the ignored hostmask to have their messages replaced!
For now they can be replaced by a static string or by the output of a command

#Usage
/clever_ignore set hostmask mode arguments
Adds a hostmask and the replacement mode and arguments for said mode
modes:
string -> static string
example clever_ignore set * string Meow meow meow!
command -> uses the output of the command as the replacement
example clever_ignore set * command fortune

/clever_ignore remove hostmask
removes a hostmask
/clever_ignore list
list all hostmask and parameters

And finally a very useful command
/clever_ignore help and /clever_ignore topic

#Known Limitations
-State is not persistent, if you quit irssi, next time you must set again your hostmasks
-Only PRIVMSG events are taken care of for now, /me for example still works
-Potentially further bugs<commit_msg>Fixed paragraphs in Readme<commit_after># Clever Ignore

## A clever way to ignore users on IRC

#Introduction
Clever ignore is an irssi script that allows to ignore users with a twist
It allows for the ignored hostmask to have their messages replaced!
For now they can be replaced by a static string or by the output of a command

#Usage
/clever_ignore set hostmask mode arguments

Adds a hostmask and the replacement mode and arguments for said mode
modes:


string -> static string

example clever_ignore set * string Meow meow meow!


command -> uses the output of the command as the replacement

example clever_ignore set * command fortune


/clever_ignore remove hostmask

removes a hostmask


/clever_ignore list

list all hostmask and parameters


And finally a very useful command

/clever_ignore help and /clever_ignore topic

#Known Limitations
-State is not persistent, if you quit irssi, next time you must set again your hostmasks

-Only PRIVMSG events are taken care of for now, /me for example still works

-Potentially further bugs
{'fraction_non_alphanumeric': 0.02902757619738752, 'fraction_numerical': 0.0, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1934097', 'n_tokens_mistral': 554, 'n_tokens_neox': 535, 'n_words': 316}