3414 Commits

Author SHA1 Message Date
Sadie Powell
41d1312853 Rename User::age to User::nickchanged and fix the docs. 2022-10-11 11:12:04 +01:00
Sadie Powell
552b2db321 Mark User::Has{Command,Priv}Permission as const. 2022-10-07 21:34:37 +01:00
Sadie Powell
986b9ae594 Remove a now unused overload of ConvToStr. 2022-10-07 20:09:40 +01:00
Sadie Powell
1cdf4a5ca1 Rename user_hash to UserMap and move to usermanager. 2022-10-07 20:03:05 +01:00
Sadie Powell
69aab925da Modernize an old-style loop that was previously missed. 2022-10-01 22:26:26 +01:00
Sadie Powell
ee633a943c Replace foo.erase(foo.{size|end}()-1) with foo.pop_back(). 2022-10-01 22:15:23 +01:00
Sadie Powell
c7f6ffccbd Replace *foo.rbegin() with foo.end(). 2022-10-01 22:15:23 +01:00
Sadie Powell
04b4b81a0a Inline the one use of ServerNoticeAll and rm the function. 2022-10-01 02:00:48 +01:00
Sadie Powell
e4efd41a99 Use a global typedef for representing a character set. 2022-09-30 20:21:59 +01:00
Sadie Powell
44986c7976 Use auto instead of type names where the type is obvious. 2022-09-29 12:54:24 +01:00
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