14550 Commits

Author SHA1 Message Date
Sadie Powell
d3a7ac87cb Show the name of the WebIRC gateway in the IP changing notice. 2021-02-05 23:34:14 +00:00
Sadie Powell
aa4c7489b7 Duplicate the stdout file handle when used for logging.
Failure to do this may result in a crash on shutdown when started
in debug mode.
2021-02-01 18:10:53 +00:00
Sadie Powell
5b21a60a9d Fix using the TR1 headers on compilers that support C++17. 2021-02-01 17:00:19 +00:00
Sadie Powell
a235e43560 Move SSLINFO code for users to its own function and refactor. 2021-02-01 14:34:00 +00:00
Sadie Powell
b191657921 Allow using SSLINFO on channels. 2021-02-01 14:33:56 +00:00
Sadie Powell
35530841cf Convert SSLINFO to SplitCommand. 2021-02-01 13:08:21 +00:00
Sadie Powell
ff06be6c44 Read <sslinfo:operonly> once at load time. 2021-02-01 12:59:06 +00:00
Sadie Powell
55a0a6ab66 Fix the base path being used for more than just the install prefix. 2021-01-31 14:38:46 +00:00
Sadie Powell
10714b0ded Fix bitshift in INSPIRCD_VERSION_SINCE. 2021-01-30 17:31:40 +00:00
Sadie Powell
563c9aba9e Fix an oversight in the previous commit. 2021-01-30 16:46:23 +00:00
Sadie Powell
219d0fa1a6 Fix a few issues with SERVLIST.
- Implement support for service type matching based on the service
  oper type. This isn't the same as irc2 but its close enough.
- Fix erroneously sending the mask in the <mask> field. This field
  is for the service name mask not the service distribution mask.
2021-01-30 16:32:43 +00:00
Sadie Powell
ce05e885a9 Remove unnecessary chdirs in the helper script. 2021-01-29 15:01:37 +00:00
Sadie Powell
0e5081e87c Fix some minor oversights introduced in 859a799 and 3e557e8. 2021-01-29 14:24:56 +00:00
Sadie Powell
413a08a4d3 Improve the ./configure --help output
- Document --portable, --runtime-dir, and INSPIRCD_VERBOSE.
- Make the output coloured on supporting terminals.
- Fix the description of --data-dir.
- Wrap all lines at 80 charactrs.
- Upper case the value names and wrap in <> not [].
2021-01-29 14:10:00 +00:00
Sadie Powell
2fceea41e8 Always use for in Perl modules. 2021-01-29 13:46:37 +00:00
Sadie Powell
3e557e85d3 Purge all remaining uses of print_format. 2021-01-29 13:39:13 +00:00
Sadie Powell
ad1ad11067 Update the mailmap. 2021-01-28 11:58:15 +00:00
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