diff options
| author | 2023-07-25 09:48:50 +0100 | |
|---|---|---|
| committer | 2023-07-25 09:48:50 +0100 | |
| commit | 3f3c2583beae75ad47e782596788bc60ce8097bb (patch) | |
| tree | 011c856a2a89948db5d7a146c720414c3462a489 /src/modules/m_spanningtree/delline.cpp | |
| parent | Add the %created% and %fulltype% variables for the X-line reason. (diff) | |
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.
Diffstat (limited to 'src/modules/m_spanningtree/delline.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/delline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
