14160 Commits

Author SHA1 Message Date
Peter Powell
cad88bcffb Use network-online instead of network in the systemd service.
As recommended at https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/.

Closes #1729.
2019-11-30 16:17:32 +00:00
Peter Powell
694c121908 Change the default for <waitpong:sendsnotice> to false.
This message exists for an incredibly rare issue and just confuses
the vast majority of people.
2019-11-29 13:48:13 +00:00
Peter Powell
df2a3d6fc4 Minor cleanup of the conn_umodes module. 2019-11-29 13:43:49 +00:00
Peter Powell
965460400b WebSocket: move the OriginList typedef inside WebSocketConfig. 2019-11-29 11:11:11 +00:00
Peter Powell
afb5972ab5 WebSocket: replace the behindproxy switch with a proxy IP list. 2019-11-29 11:09:36 +00:00
Peter Powell
bb1f892f68 Implement support for websocket connections via a proxy like nginx. 2019-11-28 17:59:35 +00:00
Peter Powell
6f2d0b505f Move WebSocket config to its own class. 2019-11-28 17:06:11 +00:00
Peter Powell
bef13bcae3 Add some overloads of IRCv3::Replies::Reply#Send. 2019-11-25 14:10:42 +00:00
Peter Powell
478a092258 Rename ldapoper class to LDAPOper.
This might be causing issues for some people?
2019-11-22 14:13:45 +00:00
Matt Schatz
7ae4ca1a23 Split the channel mode and extban replies.
Tell the user when they are extbanned rather than incorrectly say
that the channel mode is set.
Refactored the logic in m_nonotice to match that of the others.
2019-11-18 11:18:00 +00:00
Matt Schatz
36d7ee44a8 Change Config->CaseMapping back when unloading.
Now that casemapping is configurable in the core and we set that
Config variable rather than just modifying the ISupport output each
time, we need to change the variable back when being unloaded. So we
save the current value when loading and set it back when being
unloaded. We also need to call the ISupport builder a second time as
the core calls it before we destruct.
2019-11-18 11:07:19 +00:00
Matt Schatz
43da9c3232 Allow options:casemapping to remain defined when using m_nationalchars. 2019-11-18 11:07:19 +00:00
Peter Powell
2ec7654267 Deprecate Send{Channel,User}Notice; use SendMessage instead. 2019-11-17 22:37:24 +00:00
Peter Powell
8be79c0797 Make rehashing messages more consistent. 2019-11-17 22:23:51 +00:00
Peter Powell
687778b72e Allow Channel::WriteNotice send to other servers and status ranks. 2019-11-17 22:17:42 +00:00
Peter Powell
b443df3938 Close connections when an I/O hook is configured but not loaded. 2019-11-16 22:05:42 +00:00
Peter Powell
d15e3bd110 Only show classbase ctor/dtor/cull messages in debug builds. 2019-11-16 22:05:42 +00:00
Peter Powell
586abc72da Improve reading xlines from the server configuration. 2019-11-16 22:05:42 +00:00
Peter Powell
e8b476bea9 Refactor the MySQL code slightly. 2019-11-16 22:05:42 +00:00
Matt Schatz
05066eb189 SSL modules: send SNOTICE upon successful rehash. 2019-11-15 10:21:10 +00:00
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