14533 Commits

Author SHA1 Message Date
Sadie Powell
0ea4e0cb91 Exempt IRCCloud users from connectban and DNSBL lookups. 2021-01-27 19:39:34 +00:00
Sadie Powell
05fe4bdd1d Allow disabling connectban for specific connect classes.
Ref: #1841.
2021-01-27 19:39:32 +00:00
Sadie Powell
859a79923a Migrate some stuff away from print_format. 2021-01-27 16:47:08 +00:00
Sadie Powell
f6b861f12d Fix unnecessary begin blocks in Perl source files. 2021-01-25 12:39:56 +00:00
Sadie Powell
cc28ba0f21 Make the UNIX socket listener path relative to the runtime path.
This is not a breaking change because unless the runtime path is
explicitly set it defaults to the same as the data path.
2021-01-20 11:54:13 +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
28fef58b88 Send ERR_CANTUNLOADMODULE when unloading a module on reload fails. 2021-01-19 07:19:48 +00:00
Sadie Powell
5fe9da839c Refactor the globalload module.
- Require that a non-empty last parameter is given to the commands.
- Use WriteRemoteNumeric instead of WriteNumeric so opers actually see the response.
- Store <security:allowcoreunload> instead of looking it up every time.
2021-01-19 07:09:56 +00:00
Sadie Powell
da7cba6938 Fix the DNS socket not being closed when core_dns is unloaded. 2021-01-19 01:43:52 +00:00
R-V6
c2369968bc
Added <module name="codepage"> to modules.conf.example. 2021-01-18 23:46:32 +00:00
Sadie Powell
4a126ad130 Add a separate stats class for DNSBL errors. 2021-01-18 10:22:57 +00:00
Sadie Powell
e626ceeb33 Improve the robustness of the DNSBL module.
- Handle DNSBLs that return invalid lookup results.
- Fix DNSBLs that return non-local addresses blocking connections.
- Fix silently failing when a DNSBL returns no IPv4 results.
- General code cleanup.
2021-01-18 10:22:57 +00:00
iwalkalone
6223be60de
Implemented configurable kick message for the repeat module (#1835). 2021-01-18 07:22:44 +00:00
Sadie Powell
f9a6631854 Fix showing the start header when using --version. 2021-01-18 07:12:23 +00:00
Sadie Powell
a59ed4b394 Add a new runtime directory and move the pid file to it.
The data directory is intended for persistent files whereas the pid
file is ephemeral. This distinction doesn't matter by default but
on system-wide installs ephemeral runtime files go in /var/run or
/run instead.
2021-01-18 07:05:27 +00:00
Sadie Powell
8b2f3980cc Fix ./configure --update with cache files generated before v3.2. 2021-01-18 06:54:01 +00:00
Sadie Powell
267d85ac62 Add default empty openssl compiler flags.
This makes things easier for users who are using InspIRCd on OSes
where OpenSSL is part of the base system.
2021-01-18 05:38:11 +00:00
Sadie Powell
77a8864d58 Fix not rejecting attempts to set snomasks with SAMODE/override. 2021-01-16 04:48:16 +00:00
Sadie Powell
8754618697 Delete the ISO 8859-1 locale files.
These are all subsets of the latin1 codepage file which should be
used instead.
2021-01-14 12:40:33 +00:00
Sadie Powell
56b4dc61e4 Add a shun option to only apply when users are fully connected.
Closes #1825.
2021-01-13 00:05:17 +00:00
Sadie Powell
0365daef5e Improve parsing modes and snomasks in oper classes.
- Deduplicate the code to one function.
- Fix defaulting snomasks when a user has more than one class.
2021-01-12 23:52:22 +00:00
Sadie Powell
5a19ff00ac Add a user mode which allows disabling receiving channel history.
Closes #1830.
2021-01-11 10:07:11 +00:00
Sadie Powell
8d6b550e0b Implement support for more XML and IRC colour code escapes. 2021-01-07 11:53:58 +00:00
Sadie Powell
73a209628c v2 is dead, long live v3! 2020-12-31 22:54:50 +00:00
Sadie Powell
dac5a72ac3 Use the builtin Perl kill function not system. 2020-12-31 22:54:50 +00:00
Sadie Powell
2b7c396708 Export console_format from make::console and make it more robust.
Previously a module could do warning("<|INVALID wibble|>") in its
$CompilerFlags or $LinkerFLags and this would break the build.
2020-12-31 22:54:50 +00:00
Matt Schatz
e8f3587b80
Disallow an empty last parameter in MAP. 2020-12-30 09:55:50 -07:00
Sadie Powell
bf3bfec6d5 Avoid doing more work than necessary when checking the O: extban. 2020-12-25 03:46:43 +00:00
Sadie Powell
71ad7b2cd2 Replace spaces with underscores when checking for class bans. 2020-12-25 03:42:22 +00:00
Sadie Powell
aa101e59e5 Push users towards using SSL profiles for SSL config. 2020-12-24 20:55:10 +00:00
Sadie Powell
b425511242 Remove example securelist exemptions for IRCDriven and IRCSource.
Both of these are apparently dead.
2020-12-23 17:12:07 +00:00
Sadie Powell
2c789b7c32 Fix core message events not being fired.
Third time lucky eh?
2020-12-23 15:39:31 +00:00
Sadie Powell
aaee82ee30 Add config files for popular DNSBL providers. 2020-12-22 06:13:45 +00:00
Sadie Powell
744efed4e2 Add support for multiple hostmasks in <cgiirc:mask>. 2020-12-22 05:49:23 +00:00
Sadie Powell
79cc3caeb8 After changing the codepage rename duplicate users to their UUID. 2020-12-22 04:13:56 +00:00
Sadie Powell
96befc58f0 Send RPL_SAVENICK from irc2 when renaming a user to their UUID. 2020-12-22 04:13:56 +00:00
Sadie Powell
aa0221d87c Replace the SERVER stub command with something actually useful.
This will typically never be reached because the remote will wait
until it receives a CAPAB response before sending SERVER. Instead
replace it with a CAPAB stub command that quits servers with a
helpful message.
2020-12-20 04:04:36 +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
029ff235e1 Fix an inverted condition in the previous commit. 2020-12-20 00:25:27 +00:00
Sadie Powell
b618b194f3 Don't call events provided by dying or dead modules. 2020-12-18 01:10:13 +00:00
Sadie Powell
ba4a23e248 Fix MAP output on a dual v2/v3 network. 2020-12-16 14:53:12 +00:00
Sadie Powell
f3d3ccaac1 Fix an inverted condition in cmd_modules. 2020-12-16 13:04:54 +00:00
Sadie Powell
66dbd438f2 Use !empty instead of size when checking if containers are empty. 2020-12-16 03:47:31 +00:00
Sadie Powell
b7bc4b576c Update the misspell-fixer ignores. 2020-12-15 00:34:43 +00:00
Sadie Powell
90d819682d Make people aware that they can get support on GitHub now. 2020-12-09 02:03:44 +00:00
Daniel Vassdal
b456adc155 Fix issue where m_pbkdf2 was not aware of services loaded before it 2020-12-04 18:06:42 +00:00
Sadie Powell
ffacccbb6f Add a typedef for the data provider map. 2020-12-04 18:06:42 +00:00
Sadie Powell
eda0e5e2f0 Improve the logging of service adding/deleting. 2020-12-04 15:56:59 +00:00
Sadie Powell
414e65c75b Fire service deregistration events properly. 2020-12-04 15:56:59 +00:00