11672 Commits

Author SHA1 Message Date
Sadie Powell
d3d82c324e v2 is dead, long live v3! 2020-12-30 20:03:48 +00:00
Sadie Powell
6b5aac0267 Release v2.0.29. v2.0.29 2020-04-24 11:49:25 +01:00
Sadie Powell
07d7dea334 Fix reconnecting a pgsql connection if it fails. 2020-04-24 11:48:45 +01:00
Sadie Powell
a9e107c646 Unregister pgsql connection fds when they are deleted. 2020-04-24 11:48:45 +01:00
Sadie Powell
6f6fa13042 Opt-out of pgsql read and write events if polling fails. 2020-04-24 11:48:45 +01:00
Peter Powell
79b163958a Release v2.0.28. v2.0.28 2019-08-23 10:45:18 +01:00
Peter Powell
2cc35d8625 Initialise and deallocate the MySQL library correctly. 2019-08-20 16:48:09 +01:00
Peter Powell
b3dbf43c8c Update modulemanager for inspircd-contrib. 2019-06-17 10:01:16 +01:00
Robby
b18fc43ba9 Update all documentation links to use https (#1622). 2019-05-02 01:14:30 +01:00
Peter Powell
e743b2d90a Update documentation links. 2019-04-26 23:20:40 +01:00
Matt Schatz
95c5aa9195 Fix BanCache entries existing after X-line expiry.
When DefaultApply() adds a hit to the BanCache it uses the X-line
duration to set a duration on the entry. This can result in an
entry lasting longer than the X-line itself. Fix this by setting
the entry duration to the time left on the X-line.
2019-03-10 18:00:01 +00:00
Adam
6fb7354568
win: update CPACK_RESOURCE_FILE_LICENSE path 2018-11-11 19:03:28 -05:00
Peter Powell
0d9c5a2262 Release v2.0.27 v2.0.27 2018-11-05 22:59:02 +00:00
Peter Powell
39ddf2fb7a Fix exposing the ban reason when an xline is found in the bancache. 2018-11-04 10:02:28 +00:00
Peter Powell
3f0a66ce06 Fix sending malformed ERR_BANLISTFULL numerics in some contexts.
Fixes ircdocs/irc-defs#37.
2018-10-09 20:09:05 +01:00
Peter Powell
548def5860 Fix gateway client hosts not being updated if DNS resolution fails. 2018-09-18 10:48:02 +01:00
Peter Powell
0218d32903 Fix sending malformed ERR_UNKNOWNCOMMAND messages in some cases.
This is not something the average user will encounter. It can only
happen if the user sends a message with preceding whitespace or a
prefix but no command name.

This is not something that should ever be seen in practise so we
just penalise the user and pretend nothing ever happened.

The previous code also contained undefined behaviour but it acted
sensibly on all compilers we support so it was not crashable.
2018-08-10 10:30:33 +01:00
Peter Powell
090f381758 m_httpd: close the HTTP connection after serving a request.
We always send "Connection: Close" so this is the right behaviour
according to section 8.1 of RFC 2616.

Closes #1507.
2018-08-07 18:38:12 +01:00
Peter Powell
a37c11101a Clean up the WHO helpop documentation. 2018-07-12 01:31:24 +01:00
Peter Powell
11e67c494a Fix replying with the source user in oper-restricted WHO lookups. 2018-07-11 12:10:18 +01:00
Peter Powell
76c7e9db43 Update the readme so that it is actually useful. 2018-07-10 19:58:21 +01:00
Peter Powell
4f6286b65f Rename the license file so that people can find it easier. 2018-07-10 19:57:14 +01:00
Peter Powell
0864bc3e74 Fix the configure checks for eventfd(), <stdint.h>, and strlcpy().
Closes #1503.
2018-07-04 10:10:05 +01:00
Peter Powell
584cbe8015 Clarify the documentation for m_httpd and m_httpd_{config,stats}.
Thanks to @SleepyEntropy for pointing out that multiple internet-
accessible servers do not have these modules correctly configured.
2018-06-18 03:35:58 +01:00
Peter Powell
3cd61d86de Fix invalid conversion from 'const char*' to 'char*' on FreeBSD. 2018-06-08 08:44:39 +01:00
Peter Powell
dd3b11b3aa Release v2.0.26 v2.0.26 2018-04-20 19:53:01 +01:00
Matt Schatz
a2dcf9a1ad Improve some documentation (#1483).
* Improve exemptchanops in inspircd.conf.example (<options>)
  and modules.conf.example; along with both helpop examples.
* Add "the" to all "requires X module" in both helpop examples.
* Refer to customprefix instead of chanprotect and halfop.
* Add SNOMASK 'r' and 'R' (OPERLOG) to both helpop examples.
* Clean up unnecessarily split SNOMASK lines in both helpop examples.
* Move chmode 'g' to be in alphabetical order in both helpops examples.
* Specify the needed mask formats for TLINE in helpop-full example.
* Remove extra '\' in RLINE mask format in helpop-full example.
  Force xml format in helpop-full
* Generalize "color codes" to "formatting codes"
* Fix file name in include for example helpop-full
2018-04-16 10:02:49 +01:00
Peter Powell
ecfa0d3847 Fix ModuleManager's external source lists not working with HTTPS. 2018-04-12 00:30:53 +01:00
B00mX0r
3243c7d238 Fix blank instead of empty PART message when a user is shunned 2018-04-11 19:33:27 +01:00
Peter Powell
aa19c8fc02 Remove swhois messages set in the oper block on deoper.
Closes #1240.
2018-04-09 11:59:09 +01:00
genius3000
3203d698ae Fix ELine::Matches returning false on existing match
When checking for an E-Line match, we want to actually check for a
current match even if we previously matched and are set exempt.

This fixes situations where you have an E-Lined CGI:IRC address,
a G-Lined IP range for some area/host/etc and a smaller E-Lined
IP range for known good clients. Currently when CGI:IRC changes
the IP, E-Lines are rechecked but because the user is already exempt
(from the CGI:IRC E-Line), they are set no longer exempt and match
a G-Line, when they should match an E-Line.

This exact change has been done before in commit 'c8b344e' and shortly
reverted in 'c490a90' to fix issue #989 (CGI:IRC users remaining exempt
when the CGI:IRC address is E-Lined but they are not).
The actual cause to this issue was likely that the user's hostname was
not changed from the CGI:IRC hostname/IP prior to rechecking E-Lines.
This is being fixed in a separate commit.
2018-04-06 22:29:42 +01:00
Peter Powell
1cc4cf341c Set User::host before calling ChangeIP()
ChangeIP() calls SetClientIP() which revalidates whether the user
matches an ELine. However, because the hostname has not changed yet
the user may incorrectly be marked as non-exempt.
2018-04-06 22:29:42 +01:00
genius3000
fdeccd7dd3 Update the GeoIP ExtItem when CGI:IRC sets the real IP (#1471)
Since CGI:IRC calls it's 'ChangeIP()' either from 'OnCheckReady()'
or 'OnUserRegister()', both of which are called after the user has
sent NICK/USER, we can safely skip re-setting the ExtItem prior to
this point.

This skips the first 'OnSetUserIP()' from 'User::AddUser()' as
the 'OnSetConnectClass()' catch handles the initial setting.
2018-03-30 17:08:22 +01:00
Peter Powell
ded4474855
Merge pull request #1463 from clinew/insp20+openssl-v1.1-compat
m_ssl_openssl: Remove deprecated API members.
2018-03-04 13:58:00 +00:00
Wade Cline
4cfed4e5f6 m_ssl_openssl: Remove deprecated API members.
Backported from 2afc1af4639ae2bbef397f4f6acc834950017d91.
2018-03-02 21:05:05 -08:00
Peter Powell
52e8d8b72e
Merge pull request #1458 from linuxdaemon/insp20+duplicate-redir-meta
[2.0] Make sure banredirect metadata can not be duplicated
2018-02-24 11:50:54 +00:00
Peter Powell
fc4a935e25
Merge pull request #1460 from genius3000/insp20+helpop_fix
[2.0]: Helpop: Move extban 'U' from acting to matching
2018-02-12 10:41:03 +00:00
genius3000
f58ac460e6
[2.0]: Helpop: Move extban 'U' from acting to matching
Already fixed in master in 8587df2
2018-02-11 18:40:23 -07:00
linuxdaemon
219e01b5ce Revert std::set changes and add duplicate checking in m_banredirect instead, as requested by @Adam- 2018-01-25 21:34:40 -06:00
linuxdaemon
cf9fb00675 Fix comparator logic for ordering by channel 2018-01-25 19:12:23 -06:00
linuxdaemon
8e5237cca1 Make sure banredirect metadata can not be duplicated 2018-01-25 16:07:30 -06:00
Michael Hazell
758cf504f1 m_chanhistory: optionally exempt bots from receiving history.
Sending history to some bots can cause problems as without the
IRCv3 chathistory batch they have no way of knowing what messages
are history and what they should respond to.

Closes #1450.
2017-12-31 10:59:02 +00:00
Peter Powell
9b3e0a2cea
Merge pull request #1449 from B00mX0r/insp20
Fix two minor docs issues
2017-12-23 12:04:16 +00:00
B00mX0r
05d92363f9
Fix two minor docs issues 2017-12-22 14:44:29 -08:00
Peter Powell
5307c897a3 Always store something in the cgiirc hostname extension.
This is used by modules like m_sasl to send the cgiirc hostname to
services so it should contain something valid.

Closes #1438.
2017-12-20 20:50:59 +00:00
Peter Powell
2989c948e4 Use HTTPS URLs in the executable file and include examples. 2017-12-16 13:13:33 +00:00
Peter Powell
18ecf9d7e4 Fix m_spanningtree sending the wrong setter in S2S ADDLINE. 2017-12-15 00:52:35 +00:00
Peter Powell
1b88e86f97 Fix m_xline_db storing the wrong setter in the XLine database. 2017-12-15 00:52:35 +00:00
Peter Powell
ebcf1ac8f7 Clarify the documentation of <connect:allow>. 2017-12-12 20:20:33 +00:00
Peter Powell
25c1319e0d Add length checking to GetExtBanStatus and m_banexception.
As far as I can tell this is not a problem as all ban masks are
canonicalised but its better to be safe than sorry.
2017-11-28 13:48:50 +00:00