inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 7d84771f49973d7091789a8b5f0f6295d288a673
parent d2ed9f842f5c4d5d0ebb9230f920f7f2ac44fd5a
Author: Robby <robby@chatbelgie.be>
Date:   Tue, 19 Feb 2019 21:25:16 +0100

Minor text fixes for m_filter.

Diffstat:
Mdocs/conf/helpop.conf.example | 8++++----
Mdocs/conf/modules.conf.example | 2+-
Msrc/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 @@ -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 @@ -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 @@ -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;