198 Commits

Author SHA1 Message Date
Sadie Powell
942fd2bcfd Switch simple iterator loops to use range-based for loops. 2021-04-07 10:36:11 +01:00
Sadie Powell
7d84e4900f Fix a ton of pedantic compiler warnings. 2021-04-04 23:42:15 +01:00
Sadie Powell
0194f799b9 Merge branch 'insp3' into master. 2021-03-31 15:04:15 +01:00
Sadie Powell
fc3c650e8d Add support for per-DNSBL timeouts.
This should fix the issue of some DNSBLs being slower than others.
2021-03-31 13:41:55 +01:00
Sadie Powell
952ee5cc60 Fix various documentation comments. 2021-03-31 10:51:51 +01:00
Sadie Powell
03058a043a Convert SQL::Field to be a typedef of optional<string>. 2021-03-30 20:24:41 +01:00
Sadie Powell
4933952811 Use emplace_back where possible. 2021-03-30 19:44:07 +01:00
Sadie Powell
3b71f2068e Mark {From,To}{Human,Internal,Network} as noexcept. 2021-03-17 13:34:43 +00:00
Sadie Powell
e2f8e75ab8 Pascalize Set in extension item classes. 2021-03-17 06:07:41 +00:00
Sadie Powell
59ee026b3b Pascalize Get in extension item classes. 2021-03-17 05:58:47 +00:00
Sadie Powell
8cb6691601 Merge branch 'insp3' into master. 2021-03-17 04:16:24 +00:00
Sadie Powell
8fcb8ee6d6 Add support for sending a standard reply with no command name. 2021-03-11 05:37:15 +00:00
Sadie Powell
ae997d0945 Merge branch 'insp3' into master. 2021-03-10 04:53:30 +00:00
Sadie Powell
6c2b6fa23d Add a subclass of IOHookProvider for SSL modules. 2021-03-09 01:00:16 +00:00
Sadie Powell
e76b208ce8 Merge branch 'insp3' into master. 2021-03-05 09:54:26 +00:00
Sadie Powell
2ba32afa9a Fix a bunch of really obvious unnecessary includes. 2021-03-05 09:17:13 +00:00
Sadie Powell
4e488cb54d Refactor classbase/CullResult into Cullable/Cullable::Result. 2021-03-02 05:56:56 +00:00
Sadie Powell
c22c7e5a99 Merge branch 'insp3' into master. 2021-02-28 19:16:40 +00:00
InspIRCd Robot
1bf7ca3894 Update copyright headers. 2021-02-26 06:58:13 +00:00
Sadie Powell
0db24252fd Implement support for multi-prefix on WHOIS. 2021-02-25 20:10:34 +00:00
Sadie Powell
bb35650b57 Merge branch 'insp3' into master. 2021-01-29 18:15:32 +00:00
Sadie Powell
a601cf2f0d Add <dns:enabled>; allows disabling DNS lookups entirely.
Ref: #1839.
2021-01-19 08:42:44 +00:00
Sadie Powell
ebe3e3f3cf Allow converting a Cap::Reference to a Cap::Capability*. 2021-01-19 08:11:01 +00:00
Sadie Powell
a63b6e16df Merge branch 'insp3' into master. 2020-12-21 16:40:52 +00:00
Sadie Powell
6cfabb0064 Hide the server name/desc better when <options:hideserver> is set. 2020-12-20 03:05:29 +00:00
Sadie Powell
a16bac5e05 Convert IRCv3::Replies::Reply#Send[IfCap] to variadic functions. 2020-11-12 12:41:43 +00:00
Sadie Powell
ba3dd9cedc Convert FOREACH_MOD_CUSTOM to a variadic function. 2020-11-10 23:14:21 +00:00
Sadie Powell
c7690513cd Convert FIRST_MOD_RESULT_CUSTOM to a variadic function. 2020-11-10 22:23:26 +00:00
Sadie Powell
579a17df38 Clean up a bunch of contructors and destructors. 2020-11-01 02:22:41 +00:00
Sadie Powell
e059f82249 Merge branch 'insp3' into master. 2020-07-29 12:13:45 +01:00
Sadie Powell
1d06a27acc Add a method for creating a regex pattern with included flags. 2020-07-29 10:42:31 +01:00
Sadie Powell
1621a84f96 Rewrite the regex system from scratch.
* Move everything to the Regex namespace:
  - Regex -> Regex::Pattern
  - RegexException -> Regex::Exception
  - RegexFactory -> Regex::Engine

* Add support for regex flags.
  - Regex::OPT_CASE_INSENSITIVE performs case-insensitive matching.

* Add the Regex::EngineReference class as a friendly wrapper around
  dynamic_reference_nocheck<Regex::Engine>.

* Add the Regex::SimpleEngine template class for automating the
  implementation of regex factory classes.

* Use std::shared_ptr for Regex::Pattern objects instead of making
  users manage memory manually.
2020-07-28 19:22:59 +01:00
Matt Schatz
30648e84ce Fix secure websocket users not being seen as secure.
Since a TLS (SSL) module will always be the last IOHook attached
to a socket, IsSSL() needs to ignore any Middle IOHooks that may
also be attached.
2020-07-27 09:38:11 +01:00
Sadie Powell
c3e88d6b53 Clean up ISUPPORT code and implement support for ISUPPORT updates. 2020-07-24 14:27:46 +01:00
Sadie Powell
4e3d97546a Pascalize Cap::set and rename Cap::get to IsEnabled. 2020-07-20 12:16:48 +01:00
Sadie Powell
dac5288954 Implement support for inverted extbans. 2020-05-07 23:45:52 +01:00
Sadie Powell
eb0f385c8d Deduplicate extban parsing. 2020-05-07 23:10:54 +01:00
Sadie Powell
37fbbd840c Add first class support for extbans.
This replaces the previous support which was pretty much a giant
hack and was not synchronised between servers.
2020-05-07 21:41:04 +01:00
Sadie Powell
b755d2a778 Merge branch 'insp3' into master. 2020-05-05 22:03:14 +01:00
InspIRCd Robot
44489ddf7e Update copyright headers. 2020-04-24 10:23:47 +01:00
InspIRCd Robot
4f9abe96a4 Fixes by misspell-fixer 2020-04-21 00:52:12 -06:00
Sadie Powell
bafb721640 Merge branch 'insp3' into master. 2020-04-14 19:57:10 +01:00
Matt Schatz
ccebfe6e63
Update user-facing text and comments of SSL to TLS. 2020-04-14 06:08:31 -06:00
Matt Schatz
8874c1c575 Update user-facing text and comments of SSL to TLS. 2020-04-14 06:08:31 -06:00
Sadie Powell
31897d26f2 Add the inspircd.org/standard-replies capability. 2020-04-13 18:36:21 +01:00
Sadie Powell
e1ed9b275f Merge branch 'insp3' into master. 2020-04-09 18:06:50 +01:00
Sadie Powell
235a986964 Add support for sending a standard reply with no command name. 2020-04-02 20:55:53 +01:00
Sadie Powell
9ebda853f5 Fix various documentation and formatting issues. 2020-03-30 17:24:12 +01:00
Sadie Powell
b9acde9aaf Merge branch 'insp3' into master. 2020-03-18 13:51:23 +00:00
Sadie Powell
906e44f687 Add a CapReference class for the message-tags capability. 2020-03-12 05:23:04 +00:00