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: Difference between revisions

From ZNC
Jump to navigation Jump to search
Created page with "{{DISPLAYTITLE:amsgfilter}} {{External Module}} This module filters so called amsgs (messages being send to all joined channels) so that they won't appear in specified channe..."
 
>Vapier
m fix minor typo
 
Line 2: Line 2:
{{External Module}}
{{External Module}}


This module filters so called amsgs (messages being send to all joined channels) so that they won't appear in specified channels.
This module filters so called amsgs (messages being sent to all joined channels) so that they won't appear in specified channels.


== Getting the Code ==
== Getting the Code ==

Latest revision as of 09:10, 1 June 2015

This module filters so called amsgs (messages being sent 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> +----------+