]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
8 years agoMerge branch 'master+alreadysent'
Attila Molnar [Tue, 10 Nov 2015 16:20:23 +0000 (17:20 +0100)]
Merge branch 'master+alreadysent'

8 years agoRemove UserManager::GarbageCollect()
Attila Molnar [Tue, 3 Nov 2015 12:16:19 +0000 (13:16 +0100)]
Remove UserManager::GarbageCollect()

8 years agoMove already sent id rollover handling and static LocalUser::already_sent_id into...
Attila Molnar [Tue, 3 Nov 2015 12:13:00 +0000 (13:13 +0100)]
Move already sent id rollover handling and static LocalUser::already_sent_id into UserManager

8 years agoAdd UserManager::NextAlreadySentId() and convert all code to use it
Attila Molnar [Tue, 3 Nov 2015 12:08:21 +0000 (13:08 +0100)]
Add UserManager::NextAlreadySentId() and convert all code to use it

8 years agoMerge branch 'master+invite'
Attila Molnar [Tue, 3 Nov 2015 11:40:24 +0000 (12:40 +0100)]
Merge branch 'master+invite'

8 years agocore_channel Implement invite (un)serialization
Attila Molnar [Mon, 2 Nov 2015 12:40:15 +0000 (13:40 +0100)]
core_channel Implement invite (un)serialization

8 years agoRewrite invite system
Attila Molnar [Mon, 2 Nov 2015 12:28:55 +0000 (13:28 +0100)]
Rewrite invite system

- Moved out of core, now lives entirely in core_channel
- Accessible using the provided API after including the appropriate header
- Invites are stored in an extension attached to LocalUser/Channel objects, they no longer need special handling when destroying these objects or when lowering TS
- Expiration of timed invites are implemented using Timers
- When creating a new invite let a non-timed invite override a timed one

8 years agoMove ServerConfig::InvBypassModes into core_channel
Attila Molnar [Mon, 2 Nov 2015 11:38:14 +0000 (12:38 +0100)]
Move ServerConfig::InvBypassModes into core_channel

8 years agoMove handling of <options:invitebypassmodes> into core_channel
Attila Molnar [Mon, 2 Nov 2015 11:32:20 +0000 (12:32 +0100)]
Move handling of <options:invitebypassmodes> into core_channel

8 years agoMerge pull request #1093 from SaberUK/master+tsc
Attila Molnar [Wed, 14 Oct 2015 08:21:56 +0000 (10:21 +0200)]
Merge pull request #1093 from SaberUK/master+tsc

Update another password check to use InspIRCd::TimingSafeCompare.

8 years agoUpdate another password check to use InspIRCd::TimingSafeCompare.
Peter Powell [Wed, 2 Sep 2015 03:51:28 +0000 (04:51 +0100)]
Update another password check to use InspIRCd::TimingSafeCompare.

8 years agoMerge pull request #1098 from SaberUK/master+appleclang
Attila Molnar [Sun, 11 Oct 2015 14:23:42 +0000 (16:23 +0200)]
Merge pull request #1098 from SaberUK/master+appleclang

Fix detection of the Apple variant of Clang.

8 years agoFix detection of the Apple variant of Clang.
Peter Powell [Wed, 23 Sep 2015 20:45:02 +0000 (21:45 +0100)]
Fix detection of the Apple variant of Clang.

This splitting of compiler names mirrors the change implemented by
other build systems like cmake.

8 years agom_ssl_openssl Implement custom BIO methods that call SocketEngine methods
Attila Molnar [Tue, 7 Jul 2015 13:27:58 +0000 (15:27 +0200)]
m_ssl_openssl Implement custom BIO methods that call SocketEngine methods

8 years agom_ssl_openssl Remove NULL check of the session in OpenSSLIOHook constructor
Attila Molnar [Tue, 7 Jul 2015 13:07:10 +0000 (15:07 +0200)]
m_ssl_openssl Remove NULL check of the session in OpenSSLIOHook constructor

8 years agom_ssl_openssl Use SSL_MODE_RELEASE_BUFFERS if available
Attila Molnar [Mon, 6 Jul 2015 17:07:30 +0000 (19:07 +0200)]
m_ssl_openssl Use SSL_MODE_RELEASE_BUFFERS if available

8 years agom_ssl_openssl Enable ECDH when acting as a server on OpenSSL 1.0.0 and later
Attila Molnar [Mon, 6 Jul 2015 17:03:48 +0000 (19:03 +0200)]
m_ssl_openssl Enable ECDH when acting as a server on OpenSSL 1.0.0 and later

8 years agom_ssl_openssl Unconditionally compile code for detecting renegotiation and disallow...
Attila Molnar [Mon, 6 Jul 2015 16:38:44 +0000 (18:38 +0200)]
m_ssl_openssl Unconditionally compile code for detecting renegotiation and disallow it by default

8 years agoFail invalid dns responses instead of drop
Adam [Mon, 20 Apr 2015 01:57:38 +0000 (21:57 -0400)]
Fail invalid dns responses instead of drop

8 years agoMerge pull request #1069 from del6597/patch-1
Attila Molnar [Thu, 2 Jul 2015 21:52:15 +0000 (23:52 +0200)]
Merge pull request #1069 from del6597/patch-1

Update m_blockcaps.cpp

9 years agom_blockcaps Reword error message to indicate 'greater than or equal to' logic when...
David Lamont [Wed, 1 Jul 2015 18:24:28 +0000 (11:24 -0700)]
m_blockcaps Reword error message to indicate 'greater than or equal to' logic when checking caps percentage

9 years agoMerge pull request #1059 from OVERdrive-IRC/m_repeat/fix-typo
Attila Molnar [Thu, 25 Jun 2015 23:52:04 +0000 (01:52 +0200)]
Merge pull request #1059 from OVERdrive-IRC/m_repeat/fix-typo

m_repeat: fix typo (similiar->similar)

9 years agom_ssl_gnutls, m_ssl_openssl Log library version information on load
Attila Molnar [Mon, 22 Jun 2015 16:11:50 +0000 (18:11 +0200)]
m_ssl_gnutls, m_ssl_openssl Log library version information on load

9 years agom_repeat: fix typo (similiar->similar)
James Lu [Sat, 13 Jun 2015 01:27:25 +0000 (18:27 -0700)]
m_repeat: fix typo (similiar->similar)

Also update docs/ accordingly

9 years agoMerge branch 'master+sendq'
Attila Molnar [Mon, 8 Jun 2015 10:30:56 +0000 (12:30 +0200)]
Merge branch 'master+sendq'

9 years agoClean up indent in StreamSocket::DoWrite()
Attila Molnar [Sat, 6 Jun 2015 13:14:39 +0000 (15:14 +0200)]
Clean up indent in StreamSocket::DoWrite()

9 years agom_ssl_gnutls Implement corking on GnuTLS 3.1.9 and later to avoid data copies done...
Attila Molnar [Sat, 6 Jun 2015 13:13:31 +0000 (15:13 +0200)]
m_ssl_gnutls Implement corking on GnuTLS 3.1.9 and later to avoid data copies done by sendq flattening

9 years agoCall OnStreamSocketWrite() once per write event
Attila Molnar [Sat, 6 Jun 2015 12:42:59 +0000 (14:42 +0200)]
Call OnStreamSocketWrite() once per write event

Do sendq flattening in SSL modules, move code for it into class SSLIOHook from core

9 years agoAdd max outgoing record size option to sslprofile config
Attila Molnar [Sat, 6 Jun 2015 12:34:28 +0000 (14:34 +0200)]
Add max outgoing record size option to sslprofile config

9 years agoConvert all code to use StreamSocket::SendQueue
Attila Molnar [Sat, 6 Jun 2015 12:31:05 +0000 (14:31 +0200)]
Convert all code to use StreamSocket::SendQueue

Let OnStreamSocketWrite see the entire sendq instead of one element at a time

9 years agoAdd class StreamSocket::SendQueue
Attila Molnar [Sat, 6 Jun 2015 12:20:22 +0000 (14:20 +0200)]
Add class StreamSocket::SendQueue

9 years agoExpand module names in ServerConfig::ApplyModules()
Attila Molnar [Wed, 3 Jun 2015 22:03:29 +0000 (00:03 +0200)]
Expand module names in ServerConfig::ApplyModules()

9 years agoMerge pull request #1044 from SaberUK/master+multichar-prefix
Attila Molnar [Wed, 3 Jun 2015 22:00:30 +0000 (00:00 +0200)]
Merge pull request #1044 from SaberUK/master+multichar-prefix

Add support for channel alias prefixes with multiple characters.

9 years agoAdd support for channel alias prefixes with multiple characters.
Peter Powell [Wed, 13 May 2015 06:07:07 +0000 (07:07 +0100)]
Add support for channel alias prefixes with multiple characters.

9 years agom_silence Change silencelist type to vector
Attila Molnar [Wed, 3 Jun 2015 16:11:17 +0000 (18:11 +0200)]
m_silence Change silencelist type to vector

9 years agom_silence Remove unused parameters from OnBuildExemptList and rename it
Attila Molnar [Wed, 3 Jun 2015 16:10:02 +0000 (18:10 +0200)]
m_silence Remove unused parameters from OnBuildExemptList and rename it

9 years agom_callerid Prioritize after other mods for the OnUserPreMessage hook
Attila Molnar [Wed, 3 Jun 2015 16:00:04 +0000 (18:00 +0200)]
m_callerid Prioritize after other mods for the OnUserPreMessage hook

Issue #1051

9 years agoMerge pull request #1054 from SaberUK/master+fix-linking-modules
Attila Molnar [Wed, 3 Jun 2015 15:46:07 +0000 (17:46 +0200)]
Merge pull request #1054 from SaberUK/master+fix-linking-modules

Fix modules with 2+ files not having their LinkerFlags parsed.

9 years agoFix modules with 2+ files not having their LinkerFlags parsed.
Peter Powell [Wed, 3 Jun 2015 13:53:09 +0000 (14:53 +0100)]
Fix modules with 2+ files not having their LinkerFlags parsed.

9 years agoFix incomplete conversion to the new whois system noticed by @SaberUK
Attila Molnar [Tue, 2 Jun 2015 18:05:00 +0000 (20:05 +0200)]
Fix incomplete conversion to the new whois system noticed by @SaberUK

9 years agom_spanningtree Log nick collisions more verbosely and in all cases
Attila Molnar [Sat, 23 May 2015 13:10:42 +0000 (15:10 +0200)]
m_spanningtree Log nick collisions more verbosely and in all cases

9 years agoRemove dead code from UserManager::AddUser()
Attila Molnar [Fri, 22 May 2015 16:52:15 +0000 (18:52 +0200)]
Remove dead code from UserManager::AddUser()

9 years agoFix some oversights
Attila Molnar [Fri, 22 May 2015 16:49:20 +0000 (18:49 +0200)]
Fix some oversights

9 years agoUpdate example configuration to say the new style module names everywhere
Attila Molnar [Wed, 20 May 2015 13:20:00 +0000 (15:20 +0200)]
Update example configuration to say the new style module names everywhere

9 years agoAllow modules to be called as "foo" instead of "m_foo.so"
Attila Molnar [Wed, 20 May 2015 13:02:24 +0000 (15:02 +0200)]
Allow modules to be called as "foo" instead of "m_foo.so"

9 years agom_spanningtree Fix harmless valgrind warning about uninit var usage on unload
Attila Molnar [Tue, 19 May 2015 21:33:07 +0000 (23:33 +0200)]
m_spanningtree Fix harmless valgrind warning about uninit var usage on unload

9 years agoIncrease entries in valgrind stack traces to 30 (--num-callers)
Attila Molnar [Tue, 19 May 2015 21:31:02 +0000 (23:31 +0200)]
Increase entries in valgrind stack traces to 30 (--num-callers)

9 years agoMerge branch 'master+movenames'
Attila Molnar [Tue, 19 May 2015 21:10:21 +0000 (23:10 +0200)]
Merge branch 'master+movenames'

9 years agoNew m_ldap from Anope
Adam [Tue, 24 Feb 2015 15:17:19 +0000 (10:17 -0500)]
New m_ldap from Anope

Redesign to be more like m_mysql, polling ldap_result from a thread as
done previously is undefined.

9 years agoMove InspIRCd::SendError() to cmd_die
Attila Molnar [Sun, 17 May 2015 16:13:45 +0000 (18:13 +0200)]
Move InspIRCd::SendError() to cmd_die

Fix multiple ERROR messages being sent to unregistered users by removing the "Exiting with status..." message

9 years agoMove code that quits all users from InspIRCd::Cleanup() to cmd_die
Attila Molnar [Sun, 17 May 2015 16:08:49 +0000 (18:08 +0200)]
Move code that quits all users from InspIRCd::Cleanup() to cmd_die

9 years agoFix incorrect iterator use leading to prematurely exiting loops when quitting users...
Attila Molnar [Sun, 17 May 2015 16:00:42 +0000 (18:00 +0200)]
Fix incorrect iterator use leading to prematurely exiting loops when quitting users while looping the local user list

9 years agoMerge pull request #1048 from SaberUK/master+ipv6-stats
Attila Molnar [Sun, 17 May 2015 15:05:26 +0000 (17:05 +0200)]
Merge pull request #1048 from SaberUK/master+ipv6-stats

Encase the IPv6 address in `STATS p` with square brackets.

9 years agoEncase the IPv6 address in `STATS p` with square brackets.
Peter Powell [Sun, 17 May 2015 11:37:18 +0000 (12:37 +0100)]
Encase the IPv6 address in `STATS p` with square brackets.

This is a widely used format as without it the port is ambigious.

9 years agocmd_names Do the HasPrivPermission() check only in the NAMES handler
Attila Molnar [Sat, 16 May 2015 14:53:21 +0000 (16:53 +0200)]
cmd_names Do the HasPrivPermission() check only in the NAMES handler

9 years agoMove Channel::UserList() from core to cmd_names
Attila Molnar [Sat, 16 May 2015 14:49:37 +0000 (16:49 +0200)]
Move Channel::UserList() from core to cmd_names

9 years agoMove topic and NAMES sending on join from core into core_channel
Attila Molnar [Sat, 16 May 2015 14:40:22 +0000 (16:40 +0200)]
Move topic and NAMES sending on join from core into core_channel

9 years agocmd_topic Extract code sending RPL_TOPIC and RPL_TOPICTIME into a function
Attila Molnar [Sat, 16 May 2015 14:36:12 +0000 (16:36 +0200)]
cmd_topic Extract code sending RPL_TOPIC and RPL_TOPICTIME into a function

9 years agoMerge pull request #1024 from SaberUK/master+make-perl-cleanup
Attila Molnar [Wed, 13 May 2015 14:23:15 +0000 (16:23 +0200)]
Merge pull request #1024 from SaberUK/master+make-perl-cleanup

Start cleaning up the make/*.pl files.

9 years agoRemove run-cc.pl and all associated code.
Peter Powell [Sun, 22 Mar 2015 00:54:56 +0000 (00:54 +0000)]
Remove run-cc.pl and all associated code.

As far as I can tell this only worked with older versions of GCC
and there is no value in fixing it as diagnostics have improved
since then and it makes errors hard to search for anyway.

This also shaves off an average of five seconds on each build on
my hardware. Neat!

9 years agounit-cc: Remove workaround which existed for 2.0.x only.
Peter Powell [Sun, 22 Mar 2015 01:52:59 +0000 (01:52 +0000)]
unit-cc: Remove workaround which existed for 2.0.x only.

9 years agounit-cc: Use the same preamble as other Perl tools.
Peter Powell [Sun, 22 Mar 2015 01:52:10 +0000 (01:52 +0000)]
unit-cc: Use the same preamble as other Perl tools.

9 years agocalcdep: Unify coremod and module building code.
Peter Powell [Sat, 7 Feb 2015 19:19:56 +0000 (19:19 +0000)]
calcdep: Unify coremod and module building code.

9 years agocalcdep: Clean up some unused/duplicate variables.
Peter Powell [Sat, 7 Feb 2015 17:58:16 +0000 (17:58 +0000)]
calcdep: Clean up some unused/duplicate variables.

9 years agocalcdep: Use the same preamble as other Perl tools.
Peter Powell [Sat, 7 Feb 2015 17:55:20 +0000 (17:55 +0000)]
calcdep: Use the same preamble as other Perl tools.

9 years agocalcdep: Remove a workaround for a very old version of BSD Make.
Peter Powell [Sat, 7 Feb 2015 17:33:18 +0000 (17:33 +0000)]
calcdep: Remove a workaround for a very old version of BSD Make.

9 years agoMerge pull request #1041 from SaberUK/master+ipv6-nameserver
Attila Molnar [Wed, 13 May 2015 14:04:52 +0000 (16:04 +0200)]
Merge pull request #1041 from SaberUK/master+ipv6-nameserver

Fix IPv6 nameservers not being detected by the resolv.conf parser.

9 years agocore_dns Set the TTL of the cache entry to the lowest TTL in a set of ResourceRecords
Attila Molnar [Tue, 12 May 2015 22:56:35 +0000 (00:56 +0200)]
core_dns Set the TTL of the cache entry to the lowest TTL in a set of ResourceRecords

9 years agocore_dns Only clear the slot of the request if the object in the slot matches what...
Attila Molnar [Tue, 12 May 2015 22:45:19 +0000 (00:45 +0200)]
core_dns Only clear the slot of the request if the object in the slot matches what was passed to MyManager::RemoveRequest()

9 years agocore_dns Add DNS timeout timer in Process() not in DNS::Request constructor
Attila Molnar [Tue, 12 May 2015 22:43:00 +0000 (00:43 +0200)]
core_dns Add DNS timeout timer in Process() not in DNS::Request constructor

9 years agocore_dns Make MAX_REQUEST_ID unsigned, move it to core_dns from header
Attila Molnar [Tue, 12 May 2015 22:39:54 +0000 (00:39 +0200)]
core_dns Make MAX_REQUEST_ID unsigned, move it to core_dns from header

9 years agom_spanningtree Use uint64_t for the burst start time to avoid overflows
Attila Molnar [Tue, 12 May 2015 22:26:02 +0000 (00:26 +0200)]
m_spanningtree Use uint64_t for the burst start time to avoid overflows

9 years agom_spanningtree Clean up comments
Attila Molnar [Tue, 12 May 2015 22:19:12 +0000 (00:19 +0200)]
m_spanningtree Clean up comments

9 years agoRemove support for non-unloadable (VF_STATIC) modules
Attila Molnar [Tue, 12 May 2015 21:42:20 +0000 (23:42 +0200)]
Remove support for non-unloadable (VF_STATIC) modules

No module we ship uses this flag and new modules should not use it either to make hotfixing possible

9 years agocmd_modules Don't show the memory addresses of Module objects to opers
Attila Molnar [Tue, 12 May 2015 21:38:53 +0000 (23:38 +0200)]
cmd_modules Don't show the memory addresses of Module objects to opers

9 years agoMerge insp20
Attila Molnar [Sun, 10 May 2015 17:20:06 +0000 (19:20 +0200)]
Merge insp20

9 years agoRelease v2.0.20
Attila Molnar [Sun, 10 May 2015 05:24:10 +0000 (07:24 +0200)]
Release v2.0.20

9 years agoMerge pull request #1039 from SaberUK/insp20+fix-restrictmsg-uline
Attila Molnar [Sun, 10 May 2015 05:22:45 +0000 (07:22 +0200)]
Merge pull request #1039 from SaberUK/insp20+fix-restrictmsg-uline

[2.0] Fix not being able to message ulines when m_restrictmsg is loaded.

9 years agoFix not being able to message ulines when m_restrictmsg is loaded.
Peter Powell [Tue, 28 Apr 2015 19:22:34 +0000 (20:22 +0100)]
Fix not being able to message ulines when m_restrictmsg is loaded.

9 years agoFix IPv6 nameservers not being detected by the resolv.conf parser.
Peter Powell [Sun, 10 May 2015 03:36:38 +0000 (04:36 +0100)]
Fix IPv6 nameservers not being detected by the resolv.conf parser.

This fixes #973. Forward port of #974.

9 years agom_ssl_gnutls Hold users in pre-registration state until the handshake is completed
Attila Molnar [Sat, 9 May 2015 22:37:28 +0000 (00:37 +0200)]
m_ssl_gnutls Hold users in pre-registration state until the handshake is completed

9 years agoMerge branch 'master+whoiscontext'
Attila Molnar [Mon, 4 May 2015 11:24:48 +0000 (13:24 +0200)]
Merge branch 'master+whoiscontext'

9 years agocore_whois Fix numeric 319 not obeying MaxLine
Attila Molnar [Mon, 4 May 2015 10:02:28 +0000 (12:02 +0200)]
core_whois Fix numeric 319 not obeying MaxLine

9 years agocore_hostname_lookup Don't adjust DnsBad stats
Attila Molnar [Fri, 1 May 2015 14:43:02 +0000 (16:43 +0200)]
core_hostname_lookup Don't adjust DnsBad stats

This is done by core_dns

9 years agom_httpd Fix iteration in OnUnloadModule()
Attila Molnar [Fri, 1 May 2015 14:40:22 +0000 (16:40 +0200)]
m_httpd Fix iteration in OnUnloadModule()

9 years agocore_whois Simplify CommandWhois::SplitChanList()
Attila Molnar [Tue, 28 Apr 2015 13:19:09 +0000 (15:19 +0200)]
core_whois Simplify CommandWhois::SplitChanList()

9 years agoMove OnWhois* events to core_whois, add Whois::Context
Attila Molnar [Tue, 28 Apr 2015 13:16:22 +0000 (15:16 +0200)]
Move OnWhois* events to core_whois, add Whois::Context

Remove InspIRCd::SendWhoisLine()

9 years agoPrepend target user nick to whois numerics in InspIRCd::SendWhoisLine()
Attila Molnar [Tue, 28 Apr 2015 13:02:41 +0000 (15:02 +0200)]
Prepend target user nick to whois numerics in InspIRCd::SendWhoisLine()

9 years agom_servprotect Remove pointless compare of src and dst from OnWhoisLine handler
Attila Molnar [Tue, 28 Apr 2015 12:52:50 +0000 (14:52 +0200)]
m_servprotect Remove pointless compare of src and dst from OnWhoisLine handler

9 years agoMerge branch 'master+dns'
Attila Molnar [Mon, 27 Apr 2015 18:02:01 +0000 (20:02 +0200)]
Merge branch 'master+dns'

9 years agocore_dns Drop incoming packets containing a different question from what we asked
Attila Molnar [Mon, 27 Apr 2015 17:28:00 +0000 (19:28 +0200)]
core_dns Drop incoming packets containing a different question from what we asked

9 years agocore_dns Update DNS::Request::name to be the same as in the packet
Attila Molnar [Mon, 27 Apr 2015 17:23:14 +0000 (19:23 +0200)]
core_dns Update DNS::Request::name to be the same as in the packet

9 years agocore_dns Remove incomplete support for multiple questions per query
Attila Molnar [Tue, 21 Apr 2015 13:24:10 +0000 (15:24 +0200)]
core_dns Remove incomplete support for multiple questions per query

9 years agocore_dns Reject incoming packets with qdcount != 1
Attila Molnar [Tue, 21 Apr 2015 13:17:02 +0000 (15:17 +0200)]
core_dns Reject incoming packets with qdcount != 1

9 years agocore_dns Don't store query class code in Question
Attila Molnar [Tue, 21 Apr 2015 13:14:29 +0000 (15:14 +0200)]
core_dns Don't store query class code in Question

9 years agocore_dns Remove ability to pack answers
Attila Molnar [Tue, 21 Apr 2015 13:10:07 +0000 (15:10 +0200)]
core_dns Remove ability to pack answers

9 years agocore_dns Add typedef for request id, change it to uint16_t
Attila Molnar [Tue, 21 Apr 2015 13:08:10 +0000 (15:08 +0200)]
core_dns Add typedef for request id, change it to uint16_t

9 years agocore_dns Allow usage of id 65535
Attila Molnar [Tue, 21 Apr 2015 13:05:49 +0000 (15:05 +0200)]
core_dns Allow usage of id 65535

9 years agocore_dns Allow usage of id 0
Attila Molnar [Tue, 21 Apr 2015 13:00:01 +0000 (15:00 +0200)]
core_dns Allow usage of id 0

9 years agocore_dns Move packet source address checking before packet processing
Adam [Mon, 20 Apr 2015 01:57:38 +0000 (21:57 -0400)]
core_dns Move packet source address checking before packet processing