14390 Commits

Author SHA1 Message Date
Peter Powell
fe87ef1967 Refactor the MySQL query and result queue classes. 2019-11-13 16:20:34 +00:00
Peter Powell
b2c876c577 Get rid of some dead code in the MySQL module. 2019-11-13 16:20:34 +00:00
Peter Powell
db45e2e69c Improve the logic around connecting to a MySQL server.
- The connection timeout can now be customised with <database:timeout>.
- <database:port> is now limited to the 1-65535 range.
- The MySQL library will now not install a SIGPIPE handler as it
  would override the default InspIRCd ignore behavopur.
- Errors caused by setting the default character set and executing
  the initial query are now no longer ignored.
2019-11-13 13:26:58 +00:00
Peter Powell
43fb2f9972 Add GetId() to the SQL::Provider class. 2019-11-13 12:58:18 +00:00
Peter Powell
78a72b90b0 Use case insensitive comparisons when checking for SSL rehashes. 2019-11-03 19:05:52 +00:00
Peter Powell
f28161a652 Release v3.4.0. v3.4.0 2019-10-25 11:40:44 +01:00
Peter Powell
dc782bc846 Add a workaround for connectban hitting gateway IP addresses. 2019-10-25 09:53:27 +01:00
Peter Powell
23d0ffcdde Extract connectban's range checking code to a function. 2019-10-25 09:35:15 +01:00
Robby
96925ce0e8 m_noctcp: Fix noctcp user mode not applying to exempted channel ops. 2019-10-24 16:10:34 +01:00
Peter Powell
7f4bf231bc Exempt the KiwiIRC.com servers from X-lines. 2019-10-24 15:56:21 +01:00
Peter Powell
5c9427fb43 Fix a typo in the KiwiIRC.com server IPs. 2019-10-24 15:56:21 +01:00
Peter Powell
95b8763734 Raise <connflood:bootwait> from 10 seconds to 2 minutes.
Many clients don't reconnect automatically and it can take a while
for them to reconnect.
2019-10-24 15:56:21 +01:00
Peter Powell
493acff4eb Disable DNS/DNSBL/ident lookups for unregistered KiwiIRC.com users. 2019-10-24 15:56:20 +01:00
Peter Powell
0d2f3cdc51 Ignore DNSBL responses if the user's IP address has changed. 2019-10-24 15:56:20 +01:00
Peter Powell
2e75491aed Fix respecting the deprecated <channels:users> tag. 2019-10-24 15:56:20 +01:00
Matt Schatz
2998a2251c Improve the timed ban notices (#1722).
- Save the nick of the setter to use in the expiry message.
- Change both notice messages to a standard and informative style.
2019-10-24 15:48:28 +01:00
Peter Powell
bed84ae400 Fix some compiler errors in core_hostname_lookup.
No thanks to SourceTree's diff view for causing this.
2019-10-22 22:27:07 +01:00
Peter Powell
409321b5cf Handle more error cases in core_hostname_lookup. 2019-10-22 15:33:31 +01:00
Peter Powell
693b8a5a39 On DNS fail reset connecting users hostname to their IP.
Closes #1713.
2019-10-22 10:09:17 +01:00
Peter Powell
517c30e30b Improve the core_hostname_lookup result log message.
- Add the type of request.
- Add whether the request was cached.
2019-10-21 13:45:40 +01:00
Peter Powell
93d4ad7196 Remove duplicate code in core_hostname_lookup.
- The lookup type is already stored in the question.
- core_dns validates hostnames by IsHost already.
2019-10-21 13:35:37 +01:00
Peter Powell
ede5d4f612 Fire the OnSetUserIP event after the connect class change. 2019-10-21 12:22:46 +01:00
Peter Powell
3a04cd83f3 Get rid of the ptrHosts extension item.
This is unnecessary as the resolved value is already stored in the
question in the request class.
2019-10-21 12:06:37 +01:00
Peter Powell
318b40dd70 Allow event providers to know when a listener subs or unsubs. 2019-10-21 12:06:37 +01:00
Matt Schatz
274f40653f Update examples directory when paths are changed interactively. 2019-10-20 20:30:24 +01:00
Matt Schatz
890f62bd87 Add oper exemption to hidemode. 2019-10-20 20:29:05 +01:00
Peter Powell
7cf9bfbcec Fix a shadowing warning in LocalUser. 2019-10-18 13:53:51 +01:00
Peter Powell
6049a8bdf3 Fix a shadowing warning in the serialisation code. 2019-10-18 13:49:05 +01:00
Peter Powell
c61a37790d Switch ChildMap and EntryMap to insp::flat_map. 2019-10-18 12:36:55 +01:00
Peter Powell
8c0912f428 SQuit all servers when a shutdown happens. 2019-10-17 19:11:25 +01:00
Peter Powell
e3deb78340 Add an event which is fired when the server shuts down. 2019-10-17 17:17:39 +01:00
Peter Powell
08393c0028 Use separate build dirs when rebuilding with a different compiler. 2019-10-16 12:34:24 +01:00
Peter Powell
d0f802e30c Implement serialisation of users.
This allows for various things which will be coming in the future.

e.g. Transferring users to another server on upgrade.
2019-10-14 11:03:03 +01:00
Peter Powell
51b9b4c9b4 Add GetTypeStr to the DNS API. 2019-10-13 22:05:19 +01:00
Peter Powell
dd24f8ac71 Convert a bunch of LocalUser* casts to IS_LOCAL.
This is a lot safer and handles users changing servers properly.
2019-10-13 22:05:19 +01:00
Robby
f751aef210 Add repeat to the list of possible restriction types to exempt in helpop.conf.example.
Fixes #1714.
2019-10-07 23:09:42 +01:00
Peter Powell
9837499f13 Update the new issue URL in the readme. 2019-10-06 12:14:42 +01:00
Peter Powell
63905f3e0b Add a feature request issue template. 2019-10-06 12:07:16 +01:00
Peter Powell
0858fe3e1b Add a GitHub security policy. 2019-10-05 22:26:09 +01:00
Peter Powell
f01074d94f Add a pull request template. 2019-10-05 21:57:24 +01:00
Peter Powell
b9c1f4a2e8 Tweak the workaround for NetBSD's kqueue using intptr_t for udata.
Thanks to @niacat for getting this fixed upstream.
2019-10-05 20:35:09 +01:00
Peter Powell
4d2391ee09 Show the list modes which have variable list lengths in 005. 2019-10-01 12:32:40 +01:00
Peter Powell
32d96016bd Fix an shadowing warning in the spanningtree module. 2019-09-30 10:19:29 +01:00
Peter Powell
8ebe4ce2cb Stop GCC warnings about the deprecated OnServerSplit event. 2019-09-30 10:11:43 +01:00
Peter Powell
96d145b83b Fix a compiler error in the LDAP module. 2019-09-30 09:49:08 +01:00
Peter Powell
554308f654 Add null pointer checks to IS_{LOCAL,REMOTE,SERVER}.
I don't know of any places this causes issues but its better to be
safe than sorry.
2019-09-29 19:52:05 +01:00
Peter Powell
e96f1bb157 Deduplicate code for handling with setting LDAP options. 2019-09-27 22:39:56 +01:00
Peter Powell
65f74be719 Add the OnServerBurst hook and fix the docs for OnServerLink. 2019-09-23 13:18:21 +01:00
Peter Powell
cf5d382b82 Add whether the server split with an error to OnServerSplit. 2019-09-23 13:18:19 +01:00
Peter Powell
a4305d8f3c Add the server id to the Server class. 2019-09-23 13:18:14 +01:00