From 3f3c2583beae75ad47e782596788bc60ce8097bb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 25 Jul 2023 09:48:50 +0100 Subject: Also allow suffixing with -line[d] if an X-line is two characters. This makes things easier for modules like require_auth in contrib which has a GA-line. --- src/modules/m_spanningtree/delline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/delline.cpp') diff --git a/src/modules/m_spanningtree/delline.cpp b/src/modules/m_spanningtree/delline.cpp index 7920f9a1d..6c4e15ff4 100644 --- a/src/modules/m_spanningtree/delline.cpp +++ b/src/modules/m_spanningtree/delline.cpp @@ -37,7 +37,7 @@ CmdResult CommandDelLine::Handle(User* user, Params& params) if (ServerInstance->XLines->DelLine(params[1], params[0], reason, user)) { ServerInstance->SNO.WriteToSnoMask('X', "{} removed {}{} on {}: {}", setter, - params[0], params[0].length() == 1 ? "-line" : "", params[1], reason); + params[0], params[0].length() <= 2 ? "-line" : "", params[1], reason); return CmdResult::SUCCESS; } return CmdResult::FAILURE; -- cgit v1.3.1-10-gc9f91