14739 Commits

Author SHA1 Message Date
InspIRCd Robot
4540162276 Update copyright headers. 2021-08-27 09:38:22 +01:00
Sadie Powell
3b0cb01d63 Update vendored dependencies. 2021-08-27 09:25:01 +01:00
Sadie Powell
eb11c938ec Thank more people in the credits.
dan- and jwheare have helped a bunch with ircdocs and testing so
they definitely deserve to be listed here.
2021-08-24 00:49:14 +01:00
Sadie Powell
3143b797e8 Update the credits.
- Move fraggeln (former CI host) to former contributors.
- Add Duck (domain manager) to thanks.
- Add progval (docs magician) to active contributors.
2021-08-23 22:33:35 +01:00
Sadie Powell
f06bc44260 Tell users to read the docs for more info on WebSocket subprotos. 2021-08-22 14:09:54 +01:00
Sadie Powell
066eef82c1 Document the w extban. 2021-08-20 16:40:36 +01:00
Sadie Powell
8fe393bcf5 Use timing safe comparisons for the httpd_acl username and password. 2021-08-19 11:37:49 +01:00
Sadie Powell
1790dacff5 Implement support for websocket subprotocols.
This is based on the current IRCv3 draft but using a vendored protocol.
2021-08-17 22:30:45 +01:00
Sadie Powell
0b61c19a80 Minor clean up of the previous commit. 2021-08-17 22:21:07 +01:00
Sadie Powell
0d163280f5 Improve WebSocket header parsing. 2021-08-17 22:19:55 +01:00
Sadie Powell
15f6b631ca Fix not parsing headers properly in the HTTP module. 2021-08-17 15:55:39 +01:00
Valentin Lorentz
3d6365989f Fix argv index error in 'unknown option' message.
It looks like ya_getopt increments `optind` between reading the argument
and returning.

Before:

```
$ ./build/GCC-8.3/bin/inspircd --foo bar
Error: unknown option 'bar'.
$ ./build/GCC-8.3/bin/inspircd --help
Error: unknown option '%
```

After:

```
$ ./build/GCC-8.3/bin/inspircd --foo bar
Error: unknown option '--foo'.
Usage: ./build/GCC-8.3/bin/inspircd [--config <file>] [--debug] [--nofork] [--nolog]
                                    [--nopid] [--runasroot] [--version]
$ ./build/GCC-8.3/bin/inspircd --help
Error: unknown option '--help'.
Usage: ./build/GCC-8.3/bin/inspircd [--config <file>] [--debug] [--nofork] [--nolog]
                                    [--nopid] [--runasroot] [--version]

```
2021-08-10 11:38:49 +01:00
Valentin Lorentz
c3ff059188 Makes NAMES reply with RPL_ENDOFNAMES even for nonexisting channels
Instead of ERR_NOSUCHCHANNEL.

This is the behavior described by the RFCs and the Modern spec,
and is implemented by Hybrid/Chary/Solanum, Ergo, and Unreal.
2021-08-07 15:04:58 +01:00
Sadie Powell
719a96e609 Update mkdescriptions for the new YAML module documentation. 2021-08-04 03:08:39 +01:00
Sadie Powell
5c8519015b Remove the root checks from the helper script.
This has never actually worked properly. If a user wants to drop
privileges then they should specify that in the config file.
2021-07-28 10:24:55 +01:00
Sadie Powell
b7d92eaf0c Check that the source dir is writable before running compiler checks. 2021-07-28 10:20:59 +01:00
Sadie Powell
0651f91bda Fix a race condition with hostname lookups when using haproxy.
If a user's origin has been changed before the first DNS lookup
returns then the result of the lookup for that origin may overwrite
their host.

Closes #1914.
2021-07-27 16:28:23 +01:00
Sadie Powell
c935e5e89c Allow retrieving the already sent id from WriteNeighborsWithCap. 2021-07-24 19:07:25 +01:00
Sadie Powell
a488fe52f6 Change ForEachNeighbour to return the already sent id. 2021-07-24 19:00:39 +01:00
Sadie Powell
36a2e06a85 Also increase maxquit from 255 to 300. 2021-07-24 11:30:29 +01:00
Sadie Powell
6369f4eab7 Update the default limits in the example config.
- Change maxchan from 64 to 60 (base 10 is more human friendly)
- Change maxreal from 128 to 130 (base 10 is more human friendly)
- Recalculate the maximum lengths of maxkick and maxtopic.

For maxkick:

':' <nick> '!' <user> '@' <host> ' KICK ' <channel> ' ' <nick> ' :' <REASON> "\r\n"
 1   [30]   1   [10]   1   [64]      6      [60]     1   [30]   2               2

1 + 30 + 1 + 10 + 1 + 64 + 6 + 60 + 1 + 30 + 2 + 2 = 208
512 - 208 = 304 (rounded down to 300)

For maxtopic:

':' <nick> '!' <user> '@' <host> ' TOPIC ' <channel> ' :' <TOPIC> "\r\n"
 1   [30]   1   [10]   1   [64]      7       [60]     2              2

1 + 30 + 1 + 10 + 1 + 64 + 7 + 60 + 2 + 2 = 178
512 - 178 = 334 (rounded down to 330)
2021-07-24 11:16:07 +01:00
Sadie Powell
f9c273457d Handle exceptions from hash providers in password_hash. 2021-07-19 19:39:17 +01:00
Sadie Powell
c5c3004561 Fix using the wrong variable for the ciphersuites in ssl_openssl. 2021-07-19 18:40:53 +01:00
Sadie Powell
f75335f98b Always default the genssl question in configure to no. 2021-07-18 20:54:36 +01:00
Sadie Powell
74a4894596 Fix ssl_mbedtls on mbedTLS v3. 2021-07-17 18:09:19 +01:00
Sadie Powell
9e22b307fc Respect the noctcp user mode for global CTCPs.
Please don't actually send global CTCPs though.
2021-07-17 11:34:06 +01:00
Sadie Powell
1b19bcb887 Simplify reverse lookup code in core_hostname_lookup. 2021-07-07 14:05:46 +01:00
Sadie Powell
38351efa8d Deduplicate all whois numerics to the whois module header. 2021-07-05 16:50:14 +01:00
Sadie Powell
fb91c4279b Don't send oper swhois to users with hideoper enabled. 2021-07-05 16:49:52 +01:00
Sadie Powell
aabaca020b Stop sending RPL_WHOISSERVICE as it conflicts with RPL_WHOISHELPOP.
Both Anope and Atheme send an oper type for services clients so
this numeric is unnecessary. In cases where genericoper is enabled
we now send "is a network service" in RPL_WHOISOPERATOR.
2021-07-05 16:49:21 +01:00
Sadie Powell
ea9a72c5a5 Allow hostchange to select users based on connect class. 2021-07-03 19:00:12 +01:00
Sadie Powell
55edfba123 Move hostchange port parsing to a method in the HostRule class. 2021-07-03 18:54:21 +01:00
Sadie Powell
4350050a82 Fix some "targ" usages which were missed in the earlier commit. 2021-07-03 13:58:34 +01:00
Sadie Powell
f9f31ce4a2 Update the IRCCloud example config for the latest host changes.
Also switch it to use multiple hosts per connect class now we have
the ability to do that.
2021-07-02 11:15:27 +01:00
Sadie Powell
d9572c0a25 Allow reloading SSL profiles on rehash. 2021-06-24 23:02:41 +01:00
Sadie Powell
caab4c101a Add a log message to the SSL mods to remind users how to reload profiles. 2021-06-24 22:44:10 +01:00
Josh Soref
de6d4dbd1e
Fix various spelling issues (#1883).
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-06-21 21:47:06 +01:00
Molly Miller
54190b2450 Update example configuration for 'if-host-match' oper autologin option. 2021-06-21 18:52:00 +01:00
Molly Miller
2c5fdb670f Add 'if-host-match' option to m_sslinfo oper autologin configuration.
This adds an option to perform the source host check (which is usually
performed on manual oper login) in addition to the certificate fingerprint
check when automatically logging in opers upon connection to the ircd.
2021-06-21 18:52:00 +01:00
Sadie Powell
3b463377a3 Add social media links to the readme. 2021-06-21 14:50:27 +01:00
Sadie Powell
5c8b212a3c Allow making the MKPASSWD command only usable by opers. 2021-06-21 14:50:27 +01:00
Matt Schatz
9f3b933371
Add the new chanhistory umode to the example helpop. 2021-06-20 17:01:45 -06:00
Matt Schatz
52c0b62501
Fix a typo in the previous commit. 2021-06-20 16:18:52 -06:00
Matt Schatz
80406e938c
Synchronize servlist syntax and helpop with the docs page. 2021-06-20 15:52:22 -06:00
Matt Schatz
3852e1c52a
Hyphens are allowed in hostnames. 2021-06-20 15:34:13 -06:00
Sadie Powell
9a5d8e14e9 Default userstats to Pu if not otherwise specified. 2021-06-20 18:58:31 +01:00
Sadie Powell
43b7e6a979 Fix the silence TAGMSG flags being inverted in BitsToFlags. 2021-06-20 17:42:20 +01:00
Sadie Powell
ad2f737405 Show delayjoined users to themself in WHO. 2021-06-20 01:30:19 +01:00
Sadie Powell
ab31e37002 Fix building the sha256 module on Haiku. 2021-06-19 19:47:52 +01:00
Sadie Powell
e047bcc98d Reorder <limits> alphabetically in the example config. 2021-06-19 14:21:13 +01:00