3404 Commits

Author SHA1 Message Date
Sadie Powell
89537ed2ab Fix various cases of the &* being next to the name instead of type. 2022-09-29 12:36:01 +01:00
Sadie Powell
c036834745 Use NOMINMAX on Windows and undefine error in the log header. 2022-09-23 22:15:02 +01:00
Sadie Powell
68fe8cb864 Merge branch 'insp3' into master. 2022-09-19 23:46:53 +01:00
Sadie Powell
72802fac3f Fix not adding tags when converting a Numeric to a Message. 2022-09-18 21:15:34 +01:00
Sadie Powell
023e3bd22e Merge branch 'insp3' into master. 2022-09-12 23:26:22 +01:00
Sadie Powell
c56bea9d5f Make internal penalty be specified in millisecs instead of seconds.
This removes the need to multiply it later.
2022-09-09 02:16:13 +01:00
Sadie Powell
de2392833e Default allow_empty_last_param to false. 2022-09-07 22:36:02 +01:00
Sadie Powell
2a0cce9d46 Fix more warnings discovered with -Weverything. 2022-09-05 21:14:36 +01:00
Sadie Powell
9203f40f41 Fix some warnings noticed by the readability-* clang-tidy checkers. 2022-09-03 23:17:05 +01:00
Sadie Powell
2cfc79bfcb Rip out the extensible/user serialisation system.
This was part of a failed attempt to implement zero downtime
restarts in v3. This can be implemented in a better way but for
now its just slowing down build times so lets kill it.
2022-09-01 11:53:47 +01:00
Sadie Powell
6c34d4e8ea Update some code that uses "endpoint" to use "socket address" instead. 2022-09-01 11:53:47 +01:00
Sadie Powell
28a7f1f0c8 Merge branch 'insp3' into master. 2022-08-27 14:48:19 +01:00
Sadie Powell
e147b46117 Release v3.14.0. 2022-08-25 20:49:30 +01:00
InspIRCd Robot
96f355c2fa Update copyright headers. 2022-08-25 20:46:11 +01:00
Sadie Powell
65d50f04c0 Use std::string in the Serializer constructor. 2022-08-24 17:56:41 +01:00
Sadie Powell
87fe3cae8a Replace GetUserCounter() with GetUsers().size().
This method is legacy from when there was a manual user counter and
isn't much of a length saving over the unsugared version.
2022-08-24 04:52:45 +01:00
Sadie Powell
a5c2a94bd8 Fix cached log messages not having the correct timestamp. 2022-08-23 23:18:55 +01:00
Sadie Powell
61283b949d Refactor the core event macros. 2022-08-20 18:24:56 +01:00
Sadie Powell
017c9e608b Backport fix for types removed in C++17 from master. 2022-08-16 00:15:00 +01:00
Sadie Powell
f88fbaa2fe Move aptosa/untosa into the sockaddrs union and add from/from_ip.
The struct will also now always be zero-initialized by default which
removes the footgun which has happened previously where the union has
been accessed before being initialized leading to it containing weird
values.
2022-08-11 15:40:57 +01:00
Sadie Powell
19efaf163c Clean up the sockaddrs documentation comments. 2022-08-10 22:43:23 +01:00
Sadie Powell
5c751696d6 Rename OnSetUserIP to OnChangeRemoteAddress. 2022-08-10 22:18:06 +01:00
Sadie Powell
d4125ff12d Rename SetClientIP to ChangeRemoteAddress. 2022-08-10 22:16:06 +01:00
Sadie Powell
2dc07dbc06 Merge branch 'insp3' into master. 2022-08-10 22:04:19 +01:00
Sadie Powell
bbdbbc64d5 Deprecate the string variant of SetClientIP.
Nothing uses this anymore.
2022-08-10 19:37:07 +01:00
Sadie Powell
451e718489 Add support for clearing the target of a dynamic_reference. 2022-07-30 16:47:48 +01:00
Sadie Powell
1371162170 Fix insp::intrusive_list on libc++. 2022-07-26 21:36:07 +01:00
Sadie Powell
ad2aecf191 Remove some unnecessary getters in ConnectClass.
All of these members are public anyway.
2022-07-22 20:44:47 +01:00
Sadie Powell
9b12fa63ac Remove use of the deprecated std::iterator type. 2022-07-22 19:21:50 +01:00
Sadie Powell
648f813f8c Switch from NULL to nullptr. 2022-07-22 18:53:21 +01:00
Sadie Powell
b763b1e69e Merge branch 'insp3' into master. 2022-07-19 17:00:23 +01:00
Sadie Powell
42b1429b37 Also use binary exit codes in places that terminate abruptly.
This is a partial reversion of commit 57330e973b3eb1f2a84803c84daf9d6b420859fd.
2022-07-19 16:47:02 +01:00
Sadie Powell
a0850bc53f Add methods for extracting specific regex captures. 2022-06-28 14:00:14 +01:00
Sadie Powell
968bf77eb4 Make dynamic a non-default header. 2022-06-26 17:06:22 +01:00
Sadie Powell
68fd81b319 Make clientprotocol{msg,event} and numericbuilder non-default headers. 2022-06-26 16:34:21 +01:00
Sadie Powell
8c59961acc Move numeric helper classes to their own header. 2022-06-26 15:56:55 +01:00
Sadie Powell
89712e2e84 Move numerics to the source files where they are actually used. 2022-06-26 15:29:29 +01:00
Sadie Powell
255742d311 Make getEnum use the default instead of throwing. 2022-06-25 21:08:58 +01:00
Sadie Powell
a764d29de4 Centralise the logging of malformed config values. 2022-06-25 17:05:35 +01:00
Sadie Powell
fe9107c992 Modernize the syntax of various templates. 2022-06-23 21:22:04 +01:00
Sadie Powell
87f036ddf9 Fix the modehandlers array being bigger than necessary
We now pack the positions within this array so we can shrink it.
2022-06-23 15:34:23 +01:00
Sadie Powell
429b973af6 Add a basic function for templating strings. 2022-06-15 12:30:24 +01:00
Sadie Powell
b89a91f2e3 Use size_t instead of unsigned int in ModeParser. 2022-06-11 12:22:34 +01:00
Sadie Powell
73c72a51c9 Move TokenList to inspstring. 2022-06-07 20:26:38 +01:00
Sadie Powell
1991211a67 Convert irc::find to use string_view. 2022-06-07 20:26:38 +01:00
Sadie Powell
3be039e332 Get rid of GetVersionString.
TODO: split fullversion/version into individual fields.
2022-05-17 18:28:16 +01:00
Sadie Powell
08b7167d0f Mark Membership::GetRank() as constant. 2022-05-17 14:16:42 +01:00
Sadie Powell
c31e4c6a97 Add a typedef for a mode rank. 2022-05-17 13:45:18 +01:00
Sadie Powell
ec217059c3 Store a set of list mode pointers in Membership instead of characters. 2022-05-17 13:02:58 +01:00
Sadie Powell
bc2098a492 Require specifying the repeat argument of the Timer class. 2022-05-17 12:06:26 +01:00