Sadie Powell
84dc0f3cc8
Error out if a user tries to use an undefined variable.
2025-10-16 14:50:09 +01:00
Sadie Powell
b2d40d4189
Improve how Anope formats C strings.
2025-08-02 18:17:01 +01:00
Sadie Powell
34b451f36c
The require_privilege option should default to yes not no.
2025-06-11 09:28:46 +01:00
Sadie Powell
16aff210fd
Allow configuring fantasy commands to not require the FANTASY priv.
2025-06-10 16:05:11 +01:00
Sadie Powell
50f17ea8e1
Consistently use realname instead of gecos.
2025-05-10 14:40:12 +01:00
Sadie Powell
2609ff44c6
Add defaults for service:{user,host,gecos}.
2025-05-10 14:40:12 +01:00
Sadie Powell
046fa5c848
Show the reason why a config file failed to open.
2025-04-27 14:16:10 +01:00
Sadie Powell
459c7947ce
Fix skipping lone $ values within config values.
2025-04-24 12:48:48 +01:00
Sadie Powell
fad0a4a0e8
Add support for hashing operator passwords in the config.
...
Closes #327 .
2025-04-24 12:46:58 +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
badcf31499
Make config variables a lot more useful.
...
- Config variables now no longer conflict with regular values.
- Config variables can now be read from the environment.
(e.g. ${env.USER}).
- Config variables can now be used as partial values
(e.g. support@${network.domain})
2025-03-09 14:20:34 +00:00
Sadie Powell
4526fbed96
Add a helper method for getting a description of an uplink.
2025-03-02 15:42:25 +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
a5e5eb5eb0
Return EmptyBlock instead of NULL from GetModule.
2025-03-02 14:43:57 +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
70227dc882
Take a constant pointer in GetModule.
2024-11-24 22:36:53 +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
435ce51196
Move nickserv/set/message to a new module, kill options:useprivmsg.
2024-10-22 14:27:30 +01:00
Sadie Powell
2ae733bcd1
Merge branch '2.0' into 2.1.
2024-09-17 12:32:33 +01:00
Sadie Powell
cc37e6d69a
Remove config option for options:warningtimeout.
...
This hasn't done anything since the early 1.9 releases I'm not sure
why it hasn't been removed already.
2024-09-17 12:27:13 +01:00
Sadie Powell
8b4cd65e2a
Fix erroring out when sendmailpath is empty.
...
This has a default now.
2024-04-02 16:52:41 +01:00
Sadie Powell
fde3438ef2
Allow using absolute paths in more places.
2024-03-19 15:11:40 +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
ef37daf44a
Clean up the services.h includes.
2024-03-09 22:22:56 +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
79f215606d
Allow using more than one fingerprint in an oper block.
...
Closes #362 .
2024-02-26 21:55:59 +00:00
Sadie Powell
c6cb4ba159
Fix some coding style issues.
2024-02-26 15:34:17 +00:00
Sadie Powell
c4e9c0bf85
If the IRCd sends a field limit then use it over that of the config.
2024-02-22 17:05:30 +00:00
Sadie Powell
4cc68397dc
Update the copyright headers for 2024.
2024-02-17 19:58:17 +00:00
Sadie Powell
a9ab0c72a6
Use auto in places where the type is unambiguous.
2024-01-06 13:23:37 +00:00
Sadie Powell
a40f8e0b9d
Update the copyright headers for 2024.
2024-01-04 22:25:48 +00:00
Sadie Powell
a3241065c5
Start migrating to range-based for loops.
2023-10-11 15:51:52 +01:00
Sadie Powell
aa619f1eeb
Merge branch '2.0' into 2.1.
2023-07-11 12:28:54 +01:00
Sadie Powell
098f19c005
Fix a crash when a module tries to get another module's config.
2023-07-06 10:53:25 +01:00
Sadie Powell
9d0a6ddc67
Merge branch '2.0' into 2.1.
2023-06-03 21:51:07 +01:00
Adam
0646547c9e
config: remove dependency on no-delete-null-pointer-checks
2023-05-28 21:25:59 -04:00
Sadie Powell
b7abfe5eca
Avoid returning null when a config tag does not exist.
...
This invokes undefined behaviour on modern compilers.
2023-05-04 19:21:02 +01:00
Sadie Powell
ebe3fd7e57
Merge branch '2.0' into 2.1.
2023-02-19 11:21:58 +00:00
Sadie Powell
dc1d9c837b
Fix crashing when encountering an unterminated commented block.
2023-02-06 17:10:29 +00: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
6395107be6
Fix getting the port on non-UNIX socket listeners.
2022-12-27 10:21:40 +00:00
Sadie Powell
fee60c8e06
The fantasy:name field is allowed to contain spaces.
2022-12-18 10:36:59 +00:00
Sadie Powell
3f867c1e11
Show the invalid config value in the rejection message.
2022-12-18 10:35:11 +00:00
Sadie Powell
dfdcd3021a
Add support for linking over UNIX sockets.
2022-12-17 11:50:38 +00:00
Sadie Powell
5fa3d8f929
Use emplace() instead of insert(std::make_pair()).
2022-12-09 16:50:29 +00:00
Sadie Powell
1664689eb7
Merge branch '2.0' into 2.1.
2022-09-15 18:46:51 +01:00
Sadie Powell
901a456132
Fix allowing spaces in some config fields that shouldn't contain them.
2022-09-12 17:56:45 +01:00
Sadie Powell
a631028660
Merge branch '2.0' into 2.1.
2022-01-12 22:08:35 +00:00