diff options
| author | 2022-12-10 11:41:53 +0000 | |
|---|---|---|
| committer | 2022-12-10 12:26:18 +0000 | |
| commit | befecafad372234b3f3791cdcaa2685c6ab02070 (patch) | |
| tree | 76ea2bcf48688db0223b8ba39432cd6531307664 /src/modules/m_shun.cpp | |
| parent | Fix building with the Intel C++ compiler. (diff) | |
Allow specifying multiple masks when adding an X-line.
The only exemptions for this are RLINE (a real name might contains
commas) and SVSHOLD (sent by services only).
Closes #1972.
Diffstat (limited to 'src/modules/m_shun.cpp')
| -rw-r--r-- | src/modules/m_shun.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index a09ebd44d..e1f3df1d2 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -62,16 +62,17 @@ class CommandShun : public Command CommandShun(Module* Creator) : Command(Creator, "SHUN", 1, 3) { flags_needed = 'o'; - syntax = "<nick!user@host> [<duration> :<reason>]"; + syntax = "<nick!user@host>[,<nick!user@host>]+ [<duration> :<reason>]"; } CmdResult Handle(User* user, const Params& parameters) CXX11_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 CMD_SUCCESS; std::string target = parameters[0]; - User *find = ServerInstance->FindNick(target); if ((find) && (find->registered == REG_ALL)) target = "*!" + find->GetBanIdent() + "@" + find->GetIPString(); |
