aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-10 15:45:49 +0000
committerGravatar Sadie Powell2022-12-10 15:45:49 +0000
commitd0eae89821a47829d13baffa9a5c7cff74e16fcd (patch)
tree4243c73aa397c323e995a92f4149de826fbc9495 /src/modules
parentMove password checking from core_oper into OperAccount. (diff)
parentTell an oper when the X-line they were trying to match is too wide. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_shun.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 754ee426c..caffccfd9 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -63,13 +63,15 @@ public:
: Command(Creator, "SHUN", 1, 3)
{
access_needed = CmdAccess::OPERATOR;
- syntax = { "<nick!user@host> [<duration> :<reason>]" };
+ syntax = { "<nick!user@host>[,<nick!user@host>]+ [<duration> :<reason>]" };
}
CmdResult Handle(User* user, const Params& parameters) override
{
/* syntax: SHUN nick!user@host time :reason goes here */
/* 'time' is a human-readable timestring, like 2d3h2s. */
+ if (CommandParser::LoopCall(user, this, parameters, 0))
+ return CmdResult::SUCCESS;
std::string target = parameters[0];