diff options
| author | 2022-12-10 15:45:49 +0000 | |
|---|---|---|
| committer | 2022-12-10 15:45:49 +0000 | |
| commit | d0eae89821a47829d13baffa9a5c7cff74e16fcd (patch) | |
| tree | 4243c73aa397c323e995a92f4149de826fbc9495 /src/modules/m_shun.cpp | |
| parent | Move password checking from core_oper into OperAccount. (diff) | |
| parent | Tell 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/m_shun.cpp')
| -rw-r--r-- | src/modules/m_shun.cpp | 4 |
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]; |
