2015-05-20 15:20:00 +02:00
|
|
|
# Configuration file for the filter module
|
2007-07-16 17:30:04 +00:00
|
|
|
|
|
|
|
# The tags for this module are formatted as follows:
|
|
|
|
#
|
|
|
|
# <keyword pattern="any glob pattern here"
|
|
|
|
# reason="reason for filtering"
|
|
|
|
# action="action to take"
|
|
|
|
# flags="filter flags"
|
2019-01-08 03:03:53 -07:00
|
|
|
# duration="optional duration of the G-line, Z-line or shun">
|
2007-07-16 17:30:04 +00:00
|
|
|
#
|
|
|
|
# Valid actions for 'action' are:
|
|
|
|
#
|
2018-11-21 01:53:03 +01:00
|
|
|
# warn This allows the line and sends out a notice to all opers
|
|
|
|
# with +s.
|
|
|
|
#
|
2007-07-16 17:30:04 +00:00
|
|
|
# block This blocks the line, sends out a notice to all opers with
|
|
|
|
# +s and informs the user that their message was blocked.
|
|
|
|
#
|
2019-02-17 15:58:31 +01:00
|
|
|
# silent This blocks the line only, and informs the user that their
|
|
|
|
# message was blocked, but does not notify opers.
|
2007-07-16 17:30:04 +00:00
|
|
|
#
|
|
|
|
# none This action causes nothing to be done except logging. This
|
|
|
|
# is the default action if none is specified.
|
|
|
|
#
|
|
|
|
# kill This disconnects the user, with the 'reason' parameter as
|
|
|
|
# the kill reason.
|
|
|
|
#
|
2019-01-08 03:03:53 -07:00
|
|
|
# gline G-line the user for 'duration' length of time. Durations may
|
2019-02-17 15:58:31 +01:00
|
|
|
# be specified using the notation 1y2w3d4h5m6s in a similar way to
|
2019-01-08 03:03:53 -07:00
|
|
|
# other G-lines, omitting the duration or setting it to 0 makes
|
|
|
|
# any G-lines set by this filter be permanent.
|
2007-07-16 17:30:04 +00:00
|
|
|
#
|
2019-01-08 03:03:53 -07:00
|
|
|
# zline Z-line the user for 'duration' length of time. Durations may
|
2019-02-17 15:58:31 +01:00
|
|
|
# be specified using the notation 1y2w3d4h5m6s in a similar way to
|
2019-01-08 03:03:53 -07:00
|
|
|
# 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
|
2019-02-17 15:58:31 +01:00
|
|
|
# be specified using the notation 1y2w3d4h5m6s in a similar way to
|
2019-01-08 03:03:53 -07:00
|
|
|
# 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.
|
2018-11-11 19:39:53 -05:00
|
|
|
#
|
2007-07-16 17:30:04 +00:00
|
|
|
# You can add filters from IRC using the /FILTER command. If you do this, they
|
|
|
|
# will be set globally to your entire network.
|
|
|
|
#
|
|
|
|
# Valid characters for 'flags' are one or more of:
|
|
|
|
#
|
|
|
|
# p: Block private and channel messages
|
|
|
|
# n: Block private and channel notices
|
|
|
|
# P: Block part messages
|
|
|
|
# q: Block quit messages
|
|
|
|
# o: Don't match against opers
|
2019-05-20 15:15:00 +02:00
|
|
|
# r: Don't match against registered users
|
2012-09-12 16:27:59 +01:00
|
|
|
# c: Strip color codes from text before trying to match
|
2019-05-20 15:15:00 +02:00
|
|
|
# *: Represents all of the above flags except r
|
2014-03-19 15:52:07 +01:00
|
|
|
# -: Does nothing, a no-op for when you do not want to specify any flags
|
2007-07-16 17:30:04 +00:00
|
|
|
|
2015-05-20 15:20:00 +02:00
|
|
|
# Example filters:
|
2007-07-16 17:30:04 +00:00
|
|
|
#
|
|
|
|
# <keyword pattern="*qwerty*" reason="You qwertied!" action="block" flags="pn">
|
|
|
|
# <keyword pattern="*killmenow*" reason="As you request." action="kill" flags="*">
|
2019-02-17 15:58:31 +01:00
|
|
|
# <keyword pattern="*blah*" reason="Don't blah!" action="gline" duration="1d6h" flags="-">
|
2007-07-16 17:30:04 +00:00
|
|
|
|
2015-05-20 15:20:00 +02:00
|
|
|
# An example regexp filter:
|
2007-07-16 17:30:04 +00:00
|
|
|
#
|
2019-02-17 15:58:31 +01:00
|
|
|
# <keyword pattern="^blah.*?$" reason="Don't blah!" action="gline" duration="1d6h" flags="pnPq">
|
2007-07-16 17:30:04 +00:00
|
|
|
|
2014-04-11 15:20:29 +02:00
|
|
|
# You may specify specific channels that are exempt from being filtered:
|
|
|
|
#<exemptfromfilter target="#opers">
|
2014-04-11 15:16:26 +02:00
|
|
|
#<exemptfromfilter target="#help">
|
2014-04-11 15:25:54 +02:00
|
|
|
|
|
|
|
# You can also exempt messages from being filtered if they are sent to
|
|
|
|
# specific nicks.
|
|
|
|
# Example that exempts all messages sent *to* NickServ:
|
|
|
|
#<exemptfromfilter target="NickServ">
|
|
|
|
|
|
|
|
# Note that messages *from* services are never subject to filtering;
|
|
|
|
# <exemptfromfilter> tags are only for exempting messages sent *to* the
|
|
|
|
# configured targets.
|