3427 Commits

Author SHA1 Message Date
Sadie Powell
0d686818a2 Revert the previous commit slightly to work around a bug in Clang. 2022-10-22 15:11:39 +01:00
Sadie Powell
3928f478f1 Assign more class members inline instead of in the constructor. 2022-10-21 17:15:10 +01:00
Sadie Powell
77a76b8553 Merge branch 'insp3' into master. 2022-10-18 12:33:09 +01:00
Sadie Powell
ad24454084 Fix an unintentional string copy in the geolocation API. 2022-10-18 12:30:15 +01:00
Sadie Powell
3d660b8e49 Handle renamed modules when reading the modules to load. 2022-10-18 10:59:57 +01:00
Sadie Powell
4dfb70a936 Add the accountnicks metadata as a replacement for user mode +r.
This isn't used much currently but in the future will allow doing
a lot of behaviour which is currently implemented in services in
the IRCd instead e.g. killing ghost clients, nickname enforcement.
2022-10-18 10:58:14 +01:00
Sadie Powell
edfa7270f7 Fix various inappropriate uses of UINT_MAX. 2022-10-14 12:54:36 +01:00
Sadie Powell
cf628fb946 Fix a harmless todo in clientprotocolmsg. 2022-10-14 12:20:50 +01:00
Sadie Powell
f49cfd2f30 Merge branch 'insp3' into master. 2022-10-13 08:35:02 +01:00
Sadie Powell
a4ec09b455 Clean up various socket-related code. 2022-10-12 19:34:22 +01:00
Sadie Powell
59ec1f6eb6 Allow modules to control the visible channel in a WHO request. 2022-10-12 08:50:06 +01:00
Sadie Powell
a54b78fb9d Add the matched channel to the WHO request data. 2022-10-12 08:50:06 +01:00
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
45cfe11c98 Fix saving the database identifier in SQL::Provider. 2022-10-07 19:41:07 +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