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
Sadie Powell
4cc68397dc
Update the copyright headers for 2024.
2024-02-17 19:58:17 +00:00
Sadie Powell
a40f8e0b9d
Update the copyright headers for 2024.
2024-01-04 22:25:48 +00:00
Sadie Powell
0f32d2e553
Use a more human readable datetime format.
2023-10-12 14:41:07 +01:00
Sadie Powell
a3241065c5
Start migrating to range-based for loops.
2023-10-11 15:51:52 +01:00
Sadie Powell
adf820c08a
Merge branch 2.0 into 2.1.
2023-08-06 13:36:27 +01:00
Sadie Powell
7f8a0c9d33
Allow Anope to look up multiple DNS results.
...
For fixing bug 1756.
2023-07-11 16:11:57 +01:00
Sadie Powell
885462d98e
Merge branch '2.0' into 2.1.
2022-12-31 22:11:19 +00:00
Sadie Powell
33a337dfc0
Update the copyright headers for 2023.
2022-12-31 22:08:50 +00:00
Sadie Powell
15d51ff033
Document the sysconf header file.
2022-01-13 13:46:29 +00:00
Sadie Powell
a631028660
Merge branch '2.0' into 2.1.
2022-01-12 22:08:35 +00:00
Sadie Powell
b8bcad048e
Update the copyright headers for 2022.
2022-01-06 23:15:44 +00:00
Sadie Powell
ec7dfb3675
Use C++11 header names instead of their deprecated equivalents.
2022-01-04 12:36:35 +00:00
Sadie Powell
106750db77
Replace all uses of push_back with emplace_back.
2022-01-04 12:28:55 +00:00
Sadie Powell
a31a7f5a6c
Use C++11 default initializers and destructors where possible.
2022-01-04 00:17:19 +00:00