Sadie Powell
90da25f84f
Add Block::GetBlocks which returns an iterable list of blocks.
2026-06-08 15:39:28 +01:00
Sadie Powell
59c60849b6
Remove hard coded references to default access levels.
2026-05-21 11:52:32 +01:00
Sadie Powell
e2dc77641a
Add some helper methods to CommandSource for translation.
2026-04-26 18:07:56 +01:00
Sadie Powell
eaa24d3b0a
Fix the location of &* on types.
2026-03-26 16:32:56 +00:00
Sadie Powell
074ad6556c
Allow migrating access entries to the flags access system.
2026-03-16 19:18:59 +00:00
Sadie Powell
a657cb5edf
Move access entries for other access systems under an ALL option.
...
This should hopefully make it clearer that the access systems are
separate.
2026-03-16 19:18:35 +00:00
Sadie Powell
22a1924bfd
Allow Command::FindCommandFromService to skip hidden commands.
2026-03-11 05:44:48 +00:00
Sadie Powell
fa5bb3f1bf
Show the default levels in LEVELS DESC.
...
Closes #564 .
2026-03-10 23:30:35 +00:00
Sadie Powell
12545ccbde
Use auto in as many places as possible.
2026-03-05 18:04:33 +00:00
Sadie Powell
d0c2baeed4
Add a type for wrapping examples instead of using manual linewraps.
...
At a later date we should revise the examples for all commands for
consistency.
2026-02-24 18:21:44 +00:00
Sadie Powell
aef1925b1d
Fix finding gettext on Windows.
...
Unfortunately we need to move our escape character from 0x1A to 0x1B
because newer versions of gettext treat the former as an EOF character.
2026-02-08 00:23:41 +00:00
Sadie Powell
c3e62d3772
Improve the usability of adding hostmasks to access lists.
...
* When adding a user by their nickname check for their account
instead of just adding their hostmask.
* Allow opting out of cleaning up of malformed hostmasks.
2026-01-28 19:47:56 +00:00
Sadie Powell
48bb6089fa
Swap the mode and mask params to Entry and make the mode optional.
2026-01-26 18:57:29 +00:00
Sadie Powell
6e18030285
Improve the ban mask parsing in Entry.
2026-01-20 12:34:55 +00:00
Sadie Powell
172f443421
Improve the error messages when an access list is full.
2026-01-19 11:53:54 +00:00
Sadie Powell
655c4fb5eb
Clean up the target mask code in access modules.
2026-01-19 10:43:59 +00:00
Sadie Powell
650f953cb1
Clean up masks when adding them to an access list.
...
Closes #554 .
2026-01-19 00:35:31 +00:00
Sadie Powell
81aa37543e
Merge branch '2.0' into 2.1.
2026-01-01 18:07:12 +00:00
Sadie Powell
20a8fcc574
Stop inconsistently apologising in error messages.
2025-11-25 00:48:41 +00:00
Sadie Powell
fa0c6ba821
Consistently use the same header layout on all files.
2025-11-12 19:49:59 +00:00
Sadie Powell
253cca7b3b
Fix some time-related language strings.
2025-11-10 00:59:46 +00:00
Sadie Powell
909a77efb9
Remove unnecessary return statements at the end of blocks.
2025-10-24 10:22:29 +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
eec428b0c7
Build buffers a bit smarter in cs_access/cs_xop/help.
2025-05-09 22:36:50 +01:00
Sadie Powell
66d3293ae6
Remove double spacing after a full stop in help messages.
...
This hasn't been considered a best practice since the age of the
typewriter.
https://english.stackexchange.com/questions/2544/how-many-spaces-should-come-after-a-period-full-stop
2025-05-02 11:10:35 +01:00
Sadie Powell
0dd5430c94
Deduplicate code in cs_access.
2025-04-27 20:58:35 +01:00
Sadie Powell
bbb65ddc33
When deleting a single list item show the deleted item not a count.
...
Closes #487 .
2025-04-23 01:57:02 +01:00
Sadie Powell
f3743cd37d
Remove hardcoded command names from most messages.
2025-04-22 18:56:26 +01:00
Sadie Powell
d815906393
Get rid of the internal block wrapper.
...
This only existed for compatibility with old 2.0 modules and 2.1
has already broken compatibility with them.
2025-04-19 12:49:06 +01:00
Sadie Powell
ce362854a3
Update as many messages as possible for automatic line wrapping.
2025-04-16 00:04:30 +01:00
Sadie Powell
9351debd73
Expand GetQueryCommand to take a command name.
2025-04-10 13:34:25 +01:00
Sadie Powell
8f0ee6f383
Update more messages to use gettext plural forms.
2025-03-22 08:58:24 +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
f1751dcb21
Replace usestrictprivmsg with something actually useful.
...
Every IRC server we support (other than Bahamut which is probably
on the chopping bock) uses UIDs so this setting does nothing.
Instead, allow configuring a server-side alias for each service
and use that when servicealias is enabled.
2024-10-22 16:29:22 +01:00
Sadie Powell
8cb2b801e9
Use the target nick as the default desc for mask access entries.
2024-10-19 17:40:24 +01:00
Sadie Powell
2e59aac025
Fix the default value of accessmax in cs_access.
2024-03-29 14:21:51 +00:00
Sadie Powell
ad86535024
Consistently use READ_ONLY_MODE everywhere.
2024-03-15 12:09:58 +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
b5b3c74477
Make functions that don't use this static.
2024-02-27 10:48:55 +00:00
Sadie Powell
c6cb4ba159
Fix some coding style issues.
2024-02-26 15:34:17 +00:00
Sadie Powell
484160eb4e
Shuffle modules around a bit.
2024-01-24 12:34:34 +00:00