diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-16 00:07:33 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-16 00:07:33 +0100 |
commit | 3e696fae0f30e12b13c0e932d022ce4b7427c3c8 (patch) | |
tree | 4cc6245d8ec9ee344eef22866204249eebf089fe | |
parent | ce362854a39c35249f8d2c7bcf27e3d5f9aa9980 (diff) |
Reduce the maximum line length from 120 to 100.
This should fit on user screens a bit better.
-rw-r--r-- | data/anope.example.conf | 4 | ||||
-rw-r--r-- | src/misc.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf index 64446ed80..4e81cd3c3 100644 --- a/data/anope.example.conf +++ b/data/anope.example.conf @@ -495,9 +495,9 @@ options * NOTE: this currently only applies to tables but will be expanded to all messages * in a later release. * - * Defaults to 120 if not set. + * Defaults to 100 if not set. */ - linelength = 120 + linelength = 100 /* The regex engine to use, as provided by the regex modules. * Leave commented to disable regex matching. diff --git a/src/misc.cpp b/src/misc.cpp index 0a6a38488..97b9d0604 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -160,7 +160,7 @@ void ListFormatter::Process(std::vector<Anope::string> &buffer) lengths[column] = entry[column].length(); } } - const auto max_length = Config->GetBlock("options").Get<size_t>("linelength", "120"); + const auto max_length = Config->GetBlock("options").Get<size_t>("linelength", "100"); unsigned total_length = 0; for (const auto &[column, length] : lengths) { @@ -281,7 +281,7 @@ bool TextSplitter::GetLine(Anope::string &out) out.append(fmt); // The maximum length of a line. - const auto max_length = Config->GetBlock("options").Get<size_t>("linelength", "120"); + const auto max_length = Config->GetBlock("options").Get<size_t>("linelength", "100"); // The current printable length of the output. size_t current_length = 0; |