]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
Peter Powell [Tue, 19 Dec 2017 18:41:55 +0000 (18:41 +0000)]
Merge pull request #1442 from B00mX0r/master+map_version
Show server versions in /MAP for opers
B00mX0r [Tue, 19 Dec 2017 17:21:14 +0000 (09:21 -0800)]
Show server versions in /MAP for opers
This resolves #1203
Peter Powell [Tue, 19 Dec 2017 17:49:48 +0000 (17:49 +0000)]
Use GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250.
Peter Powell [Sat, 16 Dec 2017 13:00:31 +0000 (13:00 +0000)]
Only show a duration in m_chanhistory's notice if one is set.
Closes #1235.
Peter Powell [Fri, 15 Dec 2017 10:48:33 +0000 (10:48 +0000)]
Remove usage of deprecated API members in m_ssl_openssl.
Closes #1440.
Peter Powell [Mon, 11 Dec 2017 13:16:06 +0000 (13:16 +0000)]
Don't allow users to set a zero channel limit.
Closes #451.
Peter Powell [Mon, 11 Dec 2017 11:53:03 +0000 (11:53 +0000)]
Release v3.0.0 alpha 4.
Peter Powell [Mon, 11 Dec 2017 11:41:44 +0000 (11:41 +0000)]
Merge branch 'insp20' into master.
Peter Powell [Mon, 11 Dec 2017 11:14:25 +0000 (11:14 +0000)]
Merge pull request #1423 from B00mX0r/master+override_umode
Add optional oper override umode +O.
B00mX0r [Mon, 27 Nov 2017 05:46:10 +0000 (21:46 -0800)]
Add optional oper override umode +O.
B00mX0r [Sun, 3 Dec 2017 22:36:57 +0000 (14:36 -0800)]
Ensure that ModeParser doesn't try to process a non-existent mode.
This fixes #1431 and closes #1432.
Peter Powell [Sun, 10 Dec 2017 13:59:30 +0000 (13:59 +0000)]
Require that the services server be configured in <sasl:target>.
Closes #1430.
Peter Powell [Sun, 3 Dec 2017 17:16:28 +0000 (17:16 +0000)]
Extract RFC modes from the core to core_channel and core_user.
Peter Powell [Sat, 9 Dec 2017 16:12:00 +0000 (16:12 +0000)]
Clean up numeric usage in WHOIS and WHOWAS.
- Add constants for all of the used numerics.
- Switch RPL_CHANNELSMSG from 336 to 651 to avoid a conflict with
RPL_INVITELIST from ircd-hybrid.
- Switch RPL_WHOWASIP from 379 to 652 to avoid a conflict with
RPL_WHOISMODES from UnrealIRCd.
Peter Powell [Sat, 9 Dec 2017 13:43:44 +0000 (13:43 +0000)]
Add names for a bunch more numerics.
Peter Powell [Sun, 3 Dec 2017 21:55:01 +0000 (21:55 +0000)]
Clean up m_password_hash slightly.
- Get rid of MakeHash and inline the logic into the actual handler.
- Return CMD_FAILURE when password hashing fails for some reason.
- Change the module name and description to be more accurate.
ThatOneRoadie [Mon, 5 Dec 2016 21:06:30 +0000 (14:06 -0700)]
Send a snotice when m_filter kills or G-Lines a client.
Closes #1264.
Christopher 'm4z' Holm [Sun, 15 Sep 2013 14:25:29 +0000 (16:25 +0200)]
Add SSL cert info to connect class debug log.
Closes #634.
Shawn Smith [Mon, 26 May 2014 07:18:55 +0000 (03:18 -0400)]
Removed config option for +L redirect.
Closes #466.
Peter Powell [Wed, 22 Nov 2017 12:37:20 +0000 (12:37 +0000)]
Move OnSync{Channel,Network,User} to ServerEventListener.
Peter Powell [Wed, 22 Nov 2017 12:13:42 +0000 (12:13 +0000)]
Rename the spanningtree module header to server.
In the future we will have server linking modules that are not the
spanningtree module.
Peter Powell [Sun, 3 Dec 2017 13:51:36 +0000 (13:51 +0000)]
Merge pull request #1417 from B00mX0r/master+fix_1416
Fix m_cloaking umode desync
Peter Powell [Sun, 3 Dec 2017 13:45:09 +0000 (13:45 +0000)]
Merge pull request #1428 from Chewsterchew/patch-1
Remove extra double quote (") from modules.conf
Chew [Sat, 2 Dec 2017 20:29:29 +0000 (14:29 -0600)]
Remove extra double quote (")
Peter Powell [Thu, 30 Nov 2017 14:17:13 +0000 (14:17 +0000)]
Bump the minimum versions of GnuTLS to 2.0.0 and OpenSSL to 1.0.0.
Old TLS libraries should not be used anymore due to security risks.
Peter Powell [Thu, 30 Nov 2017 12:23:33 +0000 (12:23 +0000)]
Improve TLS security configuration in m_ssl_openssl.
- Always disable SSLv3. Unreal has already done this so clients
will have to upgrade anyway.
- Disable TLSv1.0 by default. Various security standards (e.g.
PCI DSS) are already planning on sunsetting this so we should
too.
Peter Powell [Wed, 18 Oct 2017 16:16:32 +0000 (17:16 +0100)]
Merge INSPIRCD_MODULE and INSPIRCD_TARGET.
Peter Powell [Tue, 28 Nov 2017 18:41:41 +0000 (18:41 +0000)]
Use ERR_INVALIDUSERNAME rather than ERR_NEEDMOREPARAMS in USER.
This numeric is a lot more friendly for clients to deal with.
Peter Powell [Mon, 27 Nov 2017 14:13:42 +0000 (14:13 +0000)]
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.
Peter Powell [Mon, 27 Nov 2017 22:10:14 +0000 (22:10 +0000)]
Assume that RUSAGE_SELF is always defined.
This was added for Red Hat 7 which was released in 2000(!) which
nobody should be using anymore.
Peter Powell [Mon, 27 Nov 2017 14:02:44 +0000 (14:02 +0000)]
Merge pull request #1421 from B00mX0r/master+fix_extbans
Fix action extbans not triggering (resolves #1420)
B00mX0r [Sat, 25 Nov 2017 19:53:42 +0000 (11:53 -0800)]
Fix m_cloaking umode syncing
Servers will now correctly show whether a remote user has +x or not.
B00mX0r [Sun, 26 Nov 2017 22:14:12 +0000 (14:14 -0800)]
Fix action extbans not triggering
This fixes a reversion from
ebe5b20
Peter Powell [Sat, 25 Nov 2017 13:01:53 +0000 (13:01 +0000)]
Convert the remaining things away from the caller/handler API.
Peter Powell [Sat, 25 Nov 2017 12:50:11 +0000 (12:50 +0000)]
Convert GenRandom to std::function.
Peter Powell [Sat, 25 Nov 2017 12:37:48 +0000 (12:37 +0000)]
Convert IsChannel to std::function.
Peter Powell [Sat, 25 Nov 2017 12:29:05 +0000 (12:29 +0000)]
Convert IsIdent to std::function.
Peter Powell [Sat, 25 Nov 2017 12:15:35 +0000 (12:15 +0000)]
Convert IsNick to std::function.
Peter Powell [Sat, 25 Nov 2017 13:37:23 +0000 (13:37 +0000)]
Fix a minor typo in core_channel.
Peter Powell [Wed, 22 Nov 2017 13:06:11 +0000 (13:06 +0000)]
Remove the preconfigured Charybdis and UnrealIRCd module files.
These are extremely outdated. If we want to ship these then they
should be redone from scratch.
Peter Powell [Tue, 21 Nov 2017 13:05:17 +0000 (13:05 +0000)]
Add the override keyword in places that it is missing.
GCCs warnings for this are much better than Clangs.
Peter Powell [Sat, 21 Oct 2017 21:48:29 +0000 (22:48 +0100)]
Inherit non-core connect class settings properly.
Based partially on a patch by Attila.
Peter Powell [Wed, 15 Nov 2017 02:35:15 +0000 (02:35 +0000)]
Improve LIST and implement more extended list features.
- Move the ISUPPORT token from the core into core_user and start
sending the SAFELIST token to let clients know that they can
safely run LIST on big servers.
- Add support for the channel creation time (C), topic set time
(T), and inverted glob match (N) filters as specified in the
draft-hardy-irc-isupport-00 specification.
- Clean up the logic for filtering channels by user count.
Peter Powell [Fri, 17 Nov 2017 00:02:03 +0000 (00:02 +0000)]
Fix a ton of -Wsign-conversion warnings.
Attila Molnar [Fri, 18 Nov 2016 16:30:38 +0000 (17:30 +0100)]
Add events which are fired when a service is added or deleted.
Peter Powell [Wed, 15 Nov 2017 04:17:15 +0000 (04:17 +0000)]
Merge pull request #1413 from B00mX0r/insp20
Fix referring to sqloper and sqlauth as extras in modules.conf.example.
B00mX0r [Wed, 15 Nov 2017 04:07:54 +0000 (20:07 -0800)]
Fix referring to sqloper and sqlauth as extras in modules.conf
Peter Powell [Thu, 17 Aug 2017 17:32:19 +0000 (18:32 +0100)]
Add a class which encapsulates the concept of token lists.
Peter Powell [Mon, 13 Nov 2017 17:55:59 +0000 (17:55 +0000)]
Release v3.0.0 alpha 3.
Attila Molnar [Tue, 10 Jan 2017 19:21:57 +0000 (20:21 +0100)]
Unite SSL service providers and SSL profile classes
Peter Powell [Sun, 12 Nov 2017 20:53:24 +0000 (20:53 +0000)]
Only subclass Simple{Channel,User}ModeHandler when necessary.
Peter Powell [Sun, 29 Oct 2017 05:58:16 +0000 (05:58 +0000)]
Add the m_ircv3_sts module which implements the IRCv3 STS spec.
Peter Powell [Sun, 12 Nov 2017 17:33:21 +0000 (17:33 +0000)]
Merge tag 'v2.0.25' into master.
Peter Powell [Sun, 12 Nov 2017 15:55:01 +0000 (15:55 +0000)]
Release v2.0.25
Peter Powell [Sun, 12 Nov 2017 14:33:08 +0000 (14:33 +0000)]
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.
Peter Powell [Sun, 12 Nov 2017 11:58:49 +0000 (11:58 +0000)]
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.
Peter Powell [Tue, 7 Nov 2017 18:18:35 +0000 (18:18 +0000)]
Work around removing shuns on nicks when the nick is online.
Peter Powell [Thu, 9 Nov 2017 11:04:52 +0000 (11:04 +0000)]
Revert the code changes to m_sasl made in commit
9d4b4344b4 .
This is causing problems such as duplicate 904 messages.
Peter Powell [Thu, 9 Nov 2017 10:05:09 +0000 (10:05 +0000)]
Allow spaces in the network name now it doesn't cause problems.
This will not cause any compatibility issues as we do not rely on
this attribute internally.
Peter Powell [Thu, 9 Nov 2017 10:04:58 +0000 (10:04 +0000)]
Implement support for draft-brocklesby-irc-isupport-03 escapes.
Peter Powell [Tue, 7 Nov 2017 14:15:50 +0000 (14:15 +0000)]
Merge pull request #1255 from genius3000/insp20+timedbans
2.0: Fix various inconsistencies in m_timedbans.
genius3000 [Tue, 22 Nov 2016 05:00:27 +0000 (22:00 -0700)]
Improve (synchronize) the notices in m_timedbans
* Send to remote servers upon setting
* Send to halfop if available upon expiry
Peter Powell [Mon, 6 Nov 2017 11:11:22 +0000 (11:11 +0000)]
Merge pull request #1359 from genius3000/insp20+sasl_no_server
2.0: Inform the client when a SASL message cannot be sent
Peter Powell [Fri, 20 Oct 2017 07:01:27 +0000 (08:01 +0100)]
Enable using m_customprefix to alter core prefix modes.
This replaces the devoice module which has now been removed. If you
want users to be able to devoice themselves then you can load the
customprefix module add the following config tag:
<customprefix name="voice" depriv="yes">
If you wish to keep identical behaviour rather than allowing users
to use "MODE #YourChannel -v TheirNick" then you can load the alias
module and add the following config tag:
<alias text="DEVOICE" format="#*" replace="MODE $2 -v $nick">
Peter Powell [Fri, 20 Oct 2017 06:07:49 +0000 (07:07 +0100)]
Clean up the configuration reading in m_customprefix.
- Rework the code flow to be more readable.
- Ensure that the name is well formed.
- Allow prefix modes with a rank of zero.
Peter Powell [Fri, 20 Oct 2017 05:24:19 +0000 (06:24 +0100)]
Move depriv from m_customprefix into PrefixMode.
Peter Powell [Wed, 18 Oct 2017 02:40:31 +0000 (03:40 +0100)]
Add support for setting the unset rank in ModeHandler.
genius3000 [Thu, 27 Jul 2017 09:05:44 +0000 (03:05 -0600)]
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.
Peter Powell [Mon, 6 Nov 2017 00:29:51 +0000 (00:29 +0000)]
Fix an unhandled exception crash when rehashing modules.
Previously we used FOREACH_MOD to call OnRehash which handled any
thrown exceptions. When we switched to ReadConfig this stopped
being the case.
This bug was introduced in
c202dea024 .
Peter Powell [Sun, 22 Oct 2017 22:51:15 +0000 (23:51 +0100)]
Use InvalidateCache in the sockaddrs overload of OnSetClientIP.
This was done to the string variant in
d3b82b2f7f .
Peter Powell [Sun, 5 Nov 2017 22:43:36 +0000 (22:43 +0000)]
Merge pull request #1410 from jcjordyn130/insp20
Fix CMD_RESTART with relative paths as argv[0].
Jordyn/The Linux Geek [Sat, 4 Nov 2017 23:13:41 +0000 (18:13 -0500)]
Fix CMD_RESTART with relative paths as argv[0].
Peter Powell [Wed, 1 Nov 2017 17:23:00 +0000 (17:23 +0000)]
Fix some SSL module issues.
- Use the same dhparams name in m_ssl_openssl as in other modules.
- Fix building m_ssl_mbedtls.
Peter Powell [Mon, 30 Oct 2017 19:34:56 +0000 (19:34 +0000)]
Make core_hostname_lookup redo the lookup when a user's IP changes.
This removes the need to do lookups in the cgiirc module. This is
useful as relying on gateways to do proper DNS checks is unreliable
and has resulted in issues like
5fc4403f62 . Its more sane if we do
our own lookups.
This change has been okayed by multiple WEBIRC gateway authors so
I don't think it will cause many problems.
Peter Powell [Sun, 29 Oct 2017 11:15:47 +0000 (11:15 +0000)]
Add support to IOHook for retrieving the hostname sent via SNI.
Peter Powell [Sun, 22 Oct 2017 20:53:24 +0000 (21:53 +0100)]
Hide User#host and User#dhost and use accessors to modify them.
This removes the need to invalidate the cache after changing a
user's hostname.
Peter Powell [Fri, 27 Oct 2017 18:15:23 +0000 (19:15 +0100)]
Change SetClientIP to take a C++ string instead of a char array.
Adam [Fri, 27 Oct 2017 00:23:24 +0000 (20:23 -0400)]
ConfigReader: fix compilers optimizing NULL check in ConfigTag::readString()
See:
66f82ccf926aac39273bfc652c85c08080cc9a46
Fixes inspircd/inspircd-extras#110
Peter Powell [Sun, 22 Oct 2017 16:13:02 +0000 (17:13 +0100)]
Move Shutter to former contributors & thank genius3000, Sheogorath.
Peter Powell [Sun, 22 Oct 2017 02:10:48 +0000 (03:10 +0100)]
Deduplicate error handling in the socket engines.
Peter Powell [Sun, 22 Oct 2017 01:27:25 +0000 (02:27 +0100)]
Convert GetMaxFds() to size_t and deduplicate setting code.
Peter Powell [Sun, 22 Oct 2017 14:10:49 +0000 (15:10 +0100)]
Remove support for the Solaris IOCP socket engine.
After discussing this with Adam we have decided that there is very
little point in keeping this now that Solaris has been killed. Any
legacy Solaris users will have to make do with poll.
This change does not affect users of Solaris forks like Illumos as
they have support for epoll which will have already been selected
over Solaris IOCP by configure.
Peter Powell [Sun, 22 Oct 2017 14:19:11 +0000 (15:19 +0100)]
Merge pull request #1407 from genius3000/master+update_helpop_extbans
Helpop Updates
genius3000 [Sun, 22 Oct 2017 00:59:24 +0000 (18:59 -0600)]
Helpop: Move extban 'U' from acting to matching
genius3000 [Sun, 22 Oct 2017 00:56:29 +0000 (18:56 -0600)]
Helpop: Add extban 'n' - connect class ban
Commit
a54497e added m_classban, this updates the helpop files.
Adam [Sun, 22 Oct 2017 00:27:10 +0000 (20:27 -0400)]
socketengine_poll: fix initialization fd_mappings
Peter Powell [Sat, 21 Oct 2017 21:13:15 +0000 (22:13 +0100)]
Remove CMD_EPERM as it is not used anywhere.
Peter Powell [Wed, 18 Oct 2017 00:52:51 +0000 (01:52 +0100)]
Tweak the module flags in MODULES slightly.
Using unique letters for each flag makes it easier to read when
using fonts which have similar glyphs for upper and lower case
characters.
Peter Powell [Fri, 11 Aug 2017 16:24:30 +0000 (17:24 +0100)]
Add PackageInfo directives for Debian.
Peter Powell [Sat, 21 Oct 2017 15:34:48 +0000 (16:34 +0100)]
Add a helper function for calling the OnCheckExemption event.
Peter Powell [Fri, 20 Oct 2017 03:50:36 +0000 (04:50 +0100)]
Switch the default datetime format to something easier to read.
Peter Powell [Thu, 19 Oct 2017 10:55:17 +0000 (11:55 +0100)]
Switch from std::stringstream to irc::spacesepstream.
The latter is more suited to the things we have previously been
using std::stringstream for.
Peter Powell [Mon, 16 Oct 2017 01:37:57 +0000 (02:37 +0100)]
Add a constructor to OperInfo and use it to set the type name.
Peter Powell [Wed, 18 Oct 2017 11:41:37 +0000 (12:41 +0100)]
Clean up OnCleanup.
- Switch to using ExtensionItem::ExtensibleType for the type instead
of TargetTypeFlags.
- Pass the extensible to OnCleanup as an Extensible pointer
instead of a void pointer.
- Call OnCleanup for memberships as well as channels and users.
- Rewrite event documentation to remove outdated references.
Peter Powell [Wed, 18 Oct 2017 03:00:04 +0000 (04:00 +0100)]
Ignore <module> tags for modules that are already loaded.
This allows us to do user friendly things like loading the alias
module in the example alias files.
Peter Powell [Tue, 17 Oct 2017 23:36:26 +0000 (00:36 +0100)]
Fix sending a malformed 410 numeric when sent empty CAP commands.
Peter Powell [Mon, 16 Oct 2017 03:14:37 +0000 (04:14 +0100)]
Clean up the command disabling logic.
- Read the disabled command list in ApplyDisabledCommands() instead
of storing it in a global which is only accessed on rehash.
- Write debug messages to the log when disabling commands.
- Use irc::spacesepstream instead of std::stringstream.
Peter Powell [Mon, 16 Oct 2017 16:00:53 +0000 (17:00 +0100)]
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.
Peter Powell [Sun, 15 Oct 2017 23:10:02 +0000 (00:10 +0100)]
Un-constify the private fields of WebIRCHost.
These being constant causes problems on older compilers that don't
elide the temporary copy when adding to the host list.
attilamolnar [Tue, 18 Jun 2013 19:26:54 +0000 (21:26 +0200)]
Clean up the initialization of ConnectClass and ServerConfig.