diff options
author | Robby <robby@chatbelgie.be> | 2019-02-19 21:25:16 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-02-19 20:51:54 +0000 |
commit | 7d84771f49973d7091789a8b5f0f6295d288a673 (patch) | |
tree | 2c32586af53176f5bda96c795190a4189589eeae | |
parent | d2ed9f842f5c4d5d0ebb9230f920f7f2ac44fd5a (diff) |
Minor text fixes for m_filter.
-rw-r--r-- | docs/conf/helpop.conf.example | 8 | ||||
-rw-r--r-- | docs/conf/modules.conf.example | 2 | ||||
-rw-r--r-- | src/modules/m_filter.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/docs/conf/helpop.conf.example b/docs/conf/helpop.conf.example index 3fdff9bee..f8689c7b4 100644 --- a/docs/conf/helpop.conf.example +++ b/docs/conf/helpop.conf.example @@ -477,15 +477,15 @@ service is temporarily closed and to try again later."> Opens the server up again for new connections."> -<helpop key="filter" value="/FILTER <filter-definition> [<action> <flags> [<duration>] :<reason>] +<helpop key="filter" value="/FILTER <pattern> [<action> <flags> [<duration>] :<reason>] This command will add a global filter when more than one parameter is given, for messages of the types specified by the flags, with the given -filter definition, action, duration (when the action is 'gline', -'zline' or 'shun'), and reason. +filter pattern, action, duration (when the action is 'gline', 'zline' +or 'shun'), and reason. The filter will take effect when a message of any type specified by -the flags and matching the definition is sent to the server, and +the flags and matching the pattern is sent to the server, and perform the specified action. Valid FILTER Actions diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example index 964b57e71..2fa3b5042 100644 --- a/docs/conf/modules.conf.example +++ b/docs/conf/modules.conf.example @@ -851,7 +851,7 @@ # # # Optional - If you specify to use the filter module, then # # specify below the path to the filter.conf file, or define some # -# <filter> tags. # +# <keyword> tags. # # # #<include file="examples/filter.conf.example"> diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index a0245b3eb..f49694e81 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -155,7 +155,7 @@ class CommandFilter : public Command : Command(f, "FILTER", 1, 5) { flags_needed = 'o'; - this->syntax = "<filter-definition> <action> <flags> [<duration>] :<reason>"; + this->syntax = "<pattern> [<action> <flags> [<duration>] :<reason>]"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE; |