From befecafad372234b3f3791cdcaa2685c6ab02070 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 10 Dec 2022 11:41:53 +0000 Subject: 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. --- src/modules/m_shun.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules') 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 = " [ :]"; + syntax = "[,]+ [ :]"; } 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(); -- cgit v1.3.1-10-gc9f91