Sadie Powell
81aa37543e
Merge branch '2.0' into 2.1.
2026-01-01 18:07:12 +00:00
Sadie Powell
4ac5cf89e3
Update the copyright headers for 2025.
2026-01-01 18:04:37 +00:00
Sadie Powell
65827611e7
Add better error handling in Anope::LastError.
2025-12-20 00:13:35 +00:00
Sadie Powell
93e5b871e1
Version numbers should be unsigned.
2025-12-17 14:30:45 +00:00
Sadie Powell
fa0c6ba821
Consistently use the same header layout on all files.
2025-11-12 19:49:59 +00:00
Sadie Powell
9f6f0b445b
Improve the date format used when using non-English languages.
2025-10-09 13:38:16 +01:00
Sadie Powell
5d1dd21887
Fix some minor bugs with setting the user timezone.
2025-10-05 20:04:25 +01:00
Sadie Powell
8b6c6fdd81
Add support for users setting their local timezone.
2025-10-05 18:55:33 +01:00
Sadie Powell
9782c1f94b
Use the correct language for the date in Anope::strftime.
2025-10-02 15:29:43 +01:00
Sadie Powell
4dada51e08
Sort options in the information formatter output.
2025-09-29 13:00:17 +01:00
Sadie Powell
fd759f7bd3
Fix a minor comment typo in Anope::Template.
2025-09-23 18:18:52 +01:00
Sadie Powell
a792088a62
Add the monospace layout.
...
This works best in clients like The Lounge which use a variable-width
font but support monospace formatting.
2025-09-20 14:56:51 +01:00
Sadie Powell
03e2ebe2d2
Make LineWrapper UTF-8 aware.
2025-09-20 00:01:26 +01:00
Sadie Powell
c2dfb9a447
Use rounded durations in more places.
2025-09-19 20:38:53 +01:00
Sadie Powell
54389f474b
Implement support for flexible table layouts.
2025-09-19 18:50:27 +01:00
Sadie Powell
59bb9d3d06
Rework the InfoFormatter/ListFormatter APIs and move to textproc.
2025-09-19 12:31:15 +01:00
Sadie Powell
ba9f4e93c2
Redo how information tables are built to be multibyte aware.
2025-09-12 14:34:39 +01:00
Sadie Powell
b2d40d4189
Improve how Anope formats C strings.
2025-08-02 18:17:01 +01:00
Sadie Powell
e6e812c43c
Move NormalizeBuffer to textproc and rename more descriptively.
2025-08-02 17:09:24 +01:00
Sadie Powell
2dbd41d244
Move some methods to textproc.
2025-08-02 17:00:31 +01:00
Sadie Powell
e9a0a214b0
Refactor Anope::strftime.
2025-05-10 14:40:12 +01:00
Sadie Powell
46c5570b1d
Use UTC in timestamps shown to users.
2025-05-10 14:40:12 +01:00
Sadie Powell
551f3504c8
Fix broken handling of colour codes in LineWrapper.
...
Closes #504 .
2025-04-27 13:01:29 +01:00
Sadie Powell
ad0b4d1aa0
Rename TextSplitter to LineWrapper.
2025-04-16 01:53:50 +01:00
Sadie Powell
74e9a9d2fe
Automatically wrap the help output.
2025-04-16 01:50:59 +01:00
Sadie Powell
d2aee394ea
Fix a compiler warning on Clang.
2025-04-16 00:14:46 +01:00
Sadie Powell
3e696fae0f
Reduce the maximum line length from 120 to 100.
...
This should fit on user screens a bit better.
2025-04-16 00:07:33 +01:00
Sadie Powell
a883b616a1
Automatically line wrap messages sent by services.
2025-04-15 19:30:59 +01:00
Sadie Powell
d04a312d0d
Add Anope::Templace and switch all template strings to use it.
2025-04-14 11:31:19 +01:00
Sadie Powell
d019da673d
Replace NormalizeBuffer implementation with the one from InspIRCd.
...
This is more robust and will handle more formatting code types.
2025-04-02 17:04:47 +01:00
Sadie Powell
ecbf53ba6c
Allow customising the length at which lines are wrapped after.
...
Closes #485 .
2025-03-22 07:33:02 +00:00
Sadie Powell
2091dc68bc
Move REPRODUCIBLE_BUILD to sysconf.
2025-03-06 01:24:39 +00:00
Sadie Powell
f9911dde52
Return references instead of pointers from the config system.
...
We used to return NULL from these methods but now we return an empty
block so this can never actually be null now.
2025-03-02 15:27:47 +00:00
Sadie Powell
0a82366a6b
Merge branch '2.0' into 2.1.
2025-01-14 13:41:19 +00:00
Sadie Powell
da7f47c1c7
Update the copyright headers for 2025.
2025-01-14 13:30:07 +00:00
Sadie Powell
2464913200
Simplify the duration string logic in Anope::Expires.
...
This is just duplicating Anope::Duration there's no need to reimplement
a worse version of that here.
2024-11-25 03:02:24 +00:00
Sadie Powell
ebea728957
Fix pluralising languages which use the same plural for 0 as 1.
2024-11-25 01:20:03 +00:00
Sadie Powell
436dab3eb8
Convert some more strings to plural forms.
2024-11-22 15:32:39 +00:00
Sadie Powell
0dc65cc162
Clean up Anope::Duration and switch to use plural form translation.
2024-11-13 02:57:15 +00:00
Sadie Powell
693eeed762
Rework how CTCP messages are sent and received.
2024-06-24 14:29:55 +01:00
Sadie Powell
bfed2e1bf5
Use paths relative to data/conf in the config file.
...
This was done in some places already but not consistently.
Closes #349 .
2024-03-19 15:51:55 +00:00
Sadie Powell
fde3438ef2
Allow using absolute paths in more places.
2024-03-19 15:11:40 +00:00
Sadie Powell
cb3848b7db
Use clock_gettime if it is available.
2024-03-18 11:27:10 +00:00
Sadie Powell
02355546ff
Reject registrations and password changes if password encryption fails.
2024-03-11 19:39:47 +00:00
Sadie Powell
29e7674e56
Replace convertTo/stringify with non-throwing alternatives.
...
Having these throw is terrible for ergonomics and there are loads
of places where the exception was either silently ignored or not
handled at all. Having a function which returns an optional and
another that returns a default works a lot better imo.
2024-03-11 19:17:29 +00:00
Sadie Powell
464e6b8010
Use the C++11 random number generator instead of rand().
...
This is safer, faster, and doesn't require seeding.
2024-03-07 22:52:41 +00:00
Sadie Powell
1c1645096f
If a user runs an invalid command try to suggest a valid one.
2024-02-29 21:56:14 +00:00
Sadie Powell
73d4ac6de0
Remove redundant uses of const.
2024-02-27 10:34:27 +00:00
Sadie Powell
7640fad30c
Simplify several boolean expressions.
2024-02-27 10:19:44 +00:00
Sadie Powell
c6cb4ba159
Fix some coding style issues.
2024-02-26 15:34:17 +00:00