Sadie Powell
be965f2618
Rework the module headers to use namespaces and static services.
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
0016106772
Add an event for password validation, expand obscurity checks.
2025-11-10 03:13:23 +00:00
Sadie Powell
6873630f2e
Improve the "please identify" messages.
2025-07-08 16:24:16 +01:00
Sadie Powell
80b8856254
Consistently use "account" instead of "nick group".
2025-06-20 20:30:21 +01:00
Sadie Powell
c5bff3a099
Fix various issues with language strings.
2025-06-16 12:30:42 +01:00
Sadie Powell
13491bd960
Add {nickserv}:enforcerreal and cache enforcer config on reload.
2025-05-29 17:36:28 +01:00
Sadie Powell
f362959834
Fix splitting in the middle of some command names.
2025-04-22 18:16:31 +01:00
Sadie Powell
f5a85c69d2
Remove time from the name of some variables where its obvious.
2025-04-19 22:53:49 +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
94c20f3084
Use duration strings when reporting the expiry period.
2025-04-16 02:52:31 +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
d04a312d0d
Add Anope::Templace and switch all template strings to use it.
2025-04-14 11:31:19 +01:00
Sadie Powell
9351debd73
Expand GetQueryCommand to take a command name.
2025-04-10 13:34:25 +01:00
Sadie Powell
6d7fe69cdf
Add support for oper-only quit messages.
...
This currently only works on InspIRCd but I believe that other
servers also support this.
2025-03-09 18:51:03 +00:00
Sadie Powell
62bfa33464
Rework how nickname protection works.
...
- Rename the command and module from kill to protect (this command
hasn't actually killed users in a long time).
- Replace QUICK/IMMED with a duration option.
2025-03-08 14:07:15 +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
e42b4c21b7
Use the Module * overload of GetModule() in the nickserv module.
2024-11-25 14:43:23 +00:00
Sadie Powell
233a5bf4cd
Add a missing override keyword.
2024-11-25 00:20:25 +00:00
Sadie Powell
7019b27e59
Rework how guest nicks work.
...
- Use the config setting as a string template instead of as a prefix.
- Allow users of IRCds that have UIDs to use that as the guest nick.
- Fall back to a UID before killing if a guest nick can not be found.
2024-11-25 00:08:30 +00:00
Sadie Powell
df1c6176b3
Merge branch '2.0' into 2.1.
2024-11-11 17:13:01 +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
2f74513246
Change User::SetModesInternal to take a split mode change.
2024-10-02 23:54:36 +01:00
Sadie Powell
f9e4ca4d06
Raise the default nickname expiry time to one year.
2024-10-01 11:31:50 +01:00
Sadie Powell
58a78e9aa5
Allow server admins to require that a display nick drops last.
...
Closes #348 .
2024-08-29 13:14:39 +01:00
Sadie Powell
4e9d183523
Restore some functionality that was removed in an earlier commit.
2024-03-14 23:10:53 +00:00
Sadie Powell
06add0e5fc
Simplify limit extraction code.
2024-03-12 12:24:02 +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
16700b0e30
Remove a guarantee that may not necessarily be correct.
2024-03-07 23:09:25 +00:00
Sadie Powell
4e04a11995
Consistently use email instead of e-mail.
2024-03-07 22:52:41 +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
3272c1bbc6
Require new accounts to have email addresses.
2024-03-07 22:25:32 +00:00
Sadie Powell
579af3c442
Rip out ns_access and related code.
...
This is wildly insecure and has been disabled by default for at
least a decade.
2024-02-29 16:14:15 +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
5c50bcb9c7
Remove the time_t parameter from Tick and TickTimers.
...
Most uses of Tick do not use the parameter and even when it is used
it is always the same as CurTime.
2024-02-11 18:18:18 +00:00
Sadie Powell
cef56abea4
Consistently use time_t for the timer duration.
2024-02-11 18:10:38 +00:00
Sadie Powell
30b9f12711
Remove the now parameter from the Timer class.
...
This was never actually changed from the default.
2024-02-11 17:56:35 +00:00
Sadie Powell
484160eb4e
Shuffle modules around a bit.
2024-01-24 12:34:34 +00:00