11645 Commits

Author SHA1 Message Date
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
Peter Powell
bf9a8e8a50
Merge pull request #1413 from B00mX0r/insp20
Fix referring to sqloper and sqlauth as extras in modules.conf.example.
2017-11-15 04:17:15 +00:00
B00mX0r
265d6fc824
Fix referring to sqloper and sqlauth as extras in modules.conf 2017-11-14 20:15:13 -08:00
Peter Powell
53d822a7d1 Release v2.0.25 v2.0.25 2017-11-12 15:55:01 +00:00
Peter Powell
c2f9865bb8 Don't mess with the encoding of extras modules in modulemanager.
This fixes installing extras modules such as m_qrcode which contain
characters from outside of the Unicode Basic Multilingual Plane.
2017-11-12 14:33:08 +00:00
Peter Powell
a137eb1c26 Various minor documentation fixes.
- Remind admins that not setting a DIE/RESTART password does not
  disable use of those commands.
- Remove references to 1.2 and modules being able to create custom
  logging methods. This was never implemented in the 2.0 branch.
- Remove references to an SASL improvement that was reverted.
- Update various InspIRCd website links to use HTTPS over HTTP.
- Update a link to the IRCv3 website to point to the new website.
2017-11-12 12:24:57 +00:00
Peter Powell
f57dbb6dbe Work around removing shuns on nicks when the nick is online. 2017-11-09 11:16:32 +00:00
Peter Powell
e83506b7ab Revert the code changes to m_sasl made in commit 9d4b4344b4.
This is causing problems such as duplicate 904 messages.
2017-11-09 11:11:14 +00:00
Peter Powell
8f83c6709f
Merge pull request #1255 from genius3000/insp20+timedbans
2.0: Fix various inconsistencies in m_timedbans.
2017-11-07 14:15:50 +00:00
genius3000
3eefb336c6 Improve (synchronize) the notices in m_timedbans
* Send to remote servers upon setting
* Send to halfop if available upon expiry
2017-11-06 22:27:14 -07:00
Peter Powell
9375c63337
Merge pull request #1359 from genius3000/insp20+sasl_no_server
2.0: Inform the client when a SASL message cannot be sent
2017-11-06 11:11:22 +00:00
genius3000
9d4b4344b4 Inform the client when a SASL message cannot be sent
When SASL is properly configured with a 'target' server, we are able
to inform the client when the message fails to send.
Currently if a target is configured and it is offline, no response is
sent. This can cause some clients to time out while waiting for a response.

If a target isn't configured, behaviour will not change with this commit.
The default of '*' will still send to all servers.
Updated example config with 'target' variable.
2017-11-05 19:51:22 -07:00
Peter Powell
52de083afc Use InvalidateCache in the sockaddrs overload of OnSetClientIP.
This was done to the string variant in d3b82b2f7f.
2017-11-05 23:05:24 +00:00
Peter Powell
473d990d62
Merge pull request #1410 from jcjordyn130/insp20
Fix CMD_RESTART with relative paths as argv[0].
2017-11-05 22:43:36 +00:00
Jordyn/The Linux Geek
5f3360a217 Fix CMD_RESTART with relative paths as argv[0]. 2017-11-04 18:13:41 -05:00
Adam
7b7953aaf2
ConfigReader: fix compilers optimizing NULL check in ConfigTag::readString()
See: 66f82ccf926aac39273bfc652c85c08080cc9a46

Fixes inspircd/inspircd-extras#110
2017-10-26 20:23:24 -04:00
Peter Powell
7e4cc45149 Fix sending a malformed 410 numeric when sent empty CAP commands. 2017-10-18 00:36:26 +01:00
Peter Powell
f237007bc1 Fix the command table not being case insensitive.
This is not an issue normally but in some circumstances (e.g. when
disabling commands) it can result in command lookups failing even
when they exist.
2017-10-16 20:46:16 +01:00
Peter Powell
a5d110282a Update wiki links to use HTTPS and point to the correct pages.
When we release 3.0 these links will break as they will point to
the pages for 3.0 rather than 2.0.
2017-10-15 12:23:10 +01:00
Peter Powell
0337b92c15 Include connection security with the SASL host information.
See atheme/atheme@b41753f740 for more details.
2017-10-11 12:32:04 +01:00
Peter Powell
314f5f65df Fix the command for enabling m_sqlite3 in modules.conf.example. 2017-09-14 14:52:42 +01:00
Peter Powell
6c6dbb427b Fix killing elined clients on [gkz]line in some cases. 2017-09-11 16:01:17 +01:00
Peter Powell
5fc4403f62 Fix m_cgiirc allowing malformed hosts sent via WEBIRC. 2017-09-09 10:56:41 +01:00
Peter Powell
1bdf114d37 Fix {Host,IP}MatchesEveryone using Match instead of MatchCIDR.
MatchCIDR is what [GKZ]Line::Matches uses it so we should also use
it here to prevent insane bans that should not pass from passing.
2017-09-01 16:20:10 +01:00
Peter Powell
45fc75457b Use DLLManager::RetrieveLastError() on all platforms.
This prevents a bug where we send malformed messages to the client
when dlerror() returns an error message containing more than one
line. This has been observed on macOS but probably will happen on
other UNIX systems too.

This also fixes a potential problem where dlerror() returns NULL
and converting it to std::string causes a crash. I can't see any
way that this might happen but it is better to be safe than sorry.
2017-08-26 19:01:27 +01:00
Peter Powell
1f2a8e4db6 Fix mistakenly hardcoding the halfop prefix char in timedbans.
This will almost always be % but if the server admin is using the
customprefix module and remaps it to something else messages will
not be sent out correctly.
2017-08-25 13:12:44 +01:00
Peter Powell
3469711d29 Update the link to the CIDR subnetting charts. 2017-08-13 17:24:20 +01:00
Peter Powell
151dbdaac5 Merge pull request #1347 from SaberUK/insp20+ctcp-action
[2.0] Fix exempting CTCP ACTIONs in m_blockcaps and m_noctcp.
2017-08-05 18:33:54 +01:00