To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.
amsgfilter
This is an external module. Please note that it may or may not work with the current release (1.9.1). This module is not included in the default ZNC installation, and you will need to manually compile it before you can load this module. Contact the author if you have any questions, but feel free to ask in #znc on Libera.Chat. Someone might be able to help you there. |
This module filters so called amsgs (messages being send to all joined channels) so that they won't appear in specified channels.
Getting the Code
The code for this module can be found here.
Usage
Arguments
This user module takes none to many arguments. Each argument is either a channel you want to filter from amsgs (which can include wildcards) or, if it starts with !, it is an exception for the positive filters.
Read loading modules to learn more about loading modules.
Commands
add
Adds a channel you want to filter from amsgs:
/msg *amsgfilter #chan
You can also use * as a wildcard. In this example, amsgs won't reach any channel beginning with "#foo":
/msg *amsgfilter #foo*
To add an exception (e.g. from the wildcard filter above), put an ! in front of the filter pattern:
/msg *amsgfilter !#foobar
With this exception, amsgs will be filtered from any channel beginning with #foo except channel #foobar.
del
Removes an entry from the filter list. The first parameter must be a perfect match on the filter. (Refer to the list
command below to find out which filters may be removed.)
/msg *amsgfilter del !#foobar
list
Lists all added amsg filters:
<kroimon> list <*amsgfilter> +----------+ <*amsgfilter> | Channel | <*amsgfilter> +----------+ <*amsgfilter> | #chan | <*amsgfilter> | #foo* | <*amsgfilter> | !#foobar | <*amsgfilter> +----------+