X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=docs%2Fconf%2Ffilter.conf.example;h=fe95687f5b290c04c88240714df26e0960c5b8a9;hb=HEAD;hp=922f55fb699ffc6704213fa6607528571164c724;hpb=be5b0e2b3915dff52b1d1735fded824a6ba26495;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/docs/conf/filter.conf.example b/docs/conf/filter.conf.example index 922f55fb6..fe95687f5 100644 --- a/docs/conf/filter.conf.example +++ b/docs/conf/filter.conf.example @@ -1,4 +1,4 @@ -# Configuration file for m_filter.so and m_filter_pcre.so +# Configuration file for the filter module # The tags for this module are formatted as follows: # @@ -6,15 +6,18 @@ # reason="reason for filtering" # action="action to take" # flags="filter flags" -# duration="optional length of gline"> +# duration="optional duration of the G-line, Z-line or shun"> # # Valid actions for 'action' are: # +# warn This allows the line and sends out a notice to all opers +# with +s. +# # block This blocks the line, sends out a notice to all opers with # +s and informs the user that their message was blocked. # -# silent This blocks the line only, and informs the user their message -# was blocked, but does not notify opers. +# silent This blocks the line only, and informs the user that their +# message was blocked, but does not notify opers. # # none This action causes nothing to be done except logging. This # is the default action if none is specified. @@ -22,10 +25,21 @@ # kill This disconnects the user, with the 'reason' parameter as # the kill reason. # -# gline G-LINE the user for 'duration' length of time. Durations may -# be specified using the notation 1y2d3h4m6s in a similar way to -# other glines, omitting the duration or setting it to 0 makes -# any glines set by this filter be permanent. +# gline G-line the user for 'duration' length of time. Durations may +# be specified using the notation 1y2w3d4h5m6s in a similar way to +# other G-lines, omitting the duration or setting it to 0 makes +# any G-lines set by this filter be permanent. +# +# zline Z-line the user for 'duration' length of time. Durations may +# be specified using the notation 1y2w3d4h5m6s in a similar way to +# other Z-lines, omitting the duration or setting it to 0 makes +# any Z-lines set by this filter be permanent. +# +# shun Shun the user for 'duration' length of time. Durations may +# be specified using the notation 1y2w3d4h5m6s in a similar way to +# other X-lines, omitting the duration or setting it to 0 makes +# any shuns set by this filter be permanent. +# Requires the shun module to be loaded. # # You can add filters from IRC using the /FILTER command. If you do this, they # will be set globally to your entire network. @@ -37,24 +51,30 @@ # P: Block part messages # q: Block quit messages # o: Don't match against opers +# r: Don't match against registered users # c: Strip color codes from text before trying to match -# *: Represents all of the above flags -# -: Does nothing, a non-op for when you do not want to specify any flags -# -# IMPORTANT NOTE: Because the InspIRCd config reader places special meaning on the -# '\' character, you must use '\\' if you wish to specify a '\' character in a regular -# expression. For example, to indicate numbers, use \\d and not \d. This does not -# apply when adding a regular expression over irc with the /FILTER command. +# *: Represents all of the above flags except r +# -: Does nothing, a no-op for when you do not want to specify any flags -# Example filters for m_filter: +# Example filters: # # # -# +# -# An example regexp filter for m_filter_pcre: +# An example regexp filter: # -# +# + +# You may specify specific channels that are exempt from being filtered: +# +# + +# You can also exempt messages from being filtered if they are sent to +# specific nicks. +# Example that exempts all messages sent *to* NickServ: +# -# An example of excluding a channel from filtering: -# +# Note that messages *from* services are never subject to filtering; +# tags are only for exempting messages sent *to* the +# configured targets.