]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
Attila Molnar [Thu, 5 Mar 2015 15:40:51 +0000 (16:40 +0100)]
m_ssl_gnutls Replace ISSL_HANDSHAKING_READ/WRITE with a single state
Attila Molnar [Wed, 4 Mar 2015 19:22:29 +0000 (20:22 +0100)]
Use the native IOVector type in StreamSocket::DoWrite()
Attila Molnar [Wed, 4 Mar 2015 19:21:45 +0000 (20:21 +0100)]
Remove DISABLE_WRITEV and StreamSocket code for platforms lacking writev() support
Attila Molnar [Wed, 4 Mar 2015 19:18:37 +0000 (20:18 +0100)]
Add SocketEngine::WriteV()
Attila Molnar [Wed, 4 Mar 2015 19:05:00 +0000 (20:05 +0100)]
Add writev() wrapper for Windows
Attila Molnar [Sun, 1 Mar 2015 14:20:16 +0000 (15:20 +0100)]
Merge branch 'master+gnutls-packet-read'
Attila Molnar [Sat, 28 Feb 2015 16:29:30 +0000 (17:29 +0100)]
m_ssl_gnutls Implement faster reads on GnuTLS 3.3.5 and later by avoiding copying the data from GnuTLS buffers to ReadBuffer
Attila Molnar [Sat, 28 Feb 2015 16:21:49 +0000 (17:21 +0100)]
m_ssl_gnutls Move logic that reads data from a session into new class GnuTLS::DataReader
Attila Molnar [Sat, 28 Feb 2015 16:10:24 +0000 (17:10 +0100)]
m_ssl_gnutls Add convenience macro for library version checking, change checks to use it
Peter Powell [Thu, 26 Feb 2015 22:35:06 +0000 (22:35 +0000)]
Fix various Doxygen warnings.
Peter Powell [Thu, 26 Feb 2015 22:31:57 +0000 (22:31 +0000)]
Upgrade Doxyfile from 1.8.3.1 to 1.8.9.1.
Also, strip comments by request of @attilamolnar.
Attila Molnar [Fri, 27 Feb 2015 00:30:40 +0000 (01:30 +0100)]
Fix miscalculation of maxlen in Channel::UserList() introduced by the WriteNumeric() conversion
Attila Molnar [Fri, 27 Feb 2015 00:25:12 +0000 (01:25 +0100)]
Fix oversights in substr() conversion
Thanks to @StevenVanAcker for reporting and testing this
Peter Powell [Thu, 26 Feb 2015 07:41:46 +0000 (07:41 +0000)]
Fix various Clang warnings.
- warning: 'register' storage class specifier is deprecated.
Attila Molnar [Tue, 24 Feb 2015 21:30:45 +0000 (22:30 +0100)]
Merge pull request #1002 from SaberUK/insp20+fix-cgiirc-crash
[2.0] Fix a minor crash when a user has no class after OnCheckReady.
Peter Powell [Sun, 22 Feb 2015 20:24:31 +0000 (20:24 +0000)]
Fix a minor crash when a user has no class after OnCheckReady.
This bug looks serious but it can only be triggered with a
very unusual server configuration problem. If you haven't
already had a crash then you probably aren't at any risk.
The way this crash happens is:
1. InspIRCd::DoBackgroundUserStuff is called by the main loop.
2. In the switch statement curr->registered is set to REG_NICKUSER so InspIRCd::AllModulesReportReady is called.
3. InspIRCd::AllModulesReportReady calls the OnCheckReady event in m_cgiirc.
4. m_cgiirc calls RecheckClass which sets the user's class to NULL and calls LocalUser::SetClass followed by LocalUser::CheckClass.
5. The user doesn't match any classes in LocalUser::SetClass so LocalUser::CheckClass quits the user with with "Access denied by configuration".
6. Control flow returns to InspIRCd::DoBackgroundUserStuff when InspIRCd::AllModulesReportReady returns false.
7. The if statement at the end of InspIRCd::DoBackgroundUserStuff calls ConnectClass::GetRegTimeout on curr->MyClass.
8. ConnectClass::GetRegTimeout tries to access a member of this which is NULL.
9. The server crashes with a SEGFAULT.
Attila Molnar [Sun, 22 Feb 2015 19:42:12 +0000 (20:42 +0100)]
Merge pull request #916 from ShutterQuick/master+kickrejoinbound
Advertise m_kicknorejoin's upper bound. Closes #913
Daniel Vassdal [Tue, 9 Sep 2014 19:40:47 +0000 (21:40 +0200)]
capab: m_kicknorejoin: Don't advertise upper bound to 2.0 servers
Daniel Vassdal [Tue, 9 Sep 2014 09:09:46 +0000 (11:09 +0200)]
m_kicknorejoin: Advertise upper bound. Closes #913
Attila Molnar [Sun, 22 Feb 2015 16:14:53 +0000 (17:14 +0100)]
Merge pull request #998 from SaberUK/master+fix-clang-builds
Fix oversight which caused problems with Clang on OSX.
Attila Molnar [Sun, 22 Feb 2015 16:12:06 +0000 (17:12 +0100)]
Merge pull request #1000 from ShutterQuick/master+281
m_sqloper: Add `active` column
Daniel Vassdal [Sat, 21 Feb 2015 11:46:40 +0000 (12:46 +0100)]
m_sqloper.cpp: Add support for the `active` column
When active is true the user is allowed to log in. When it is FALSE, he is not.
2.0 users must alter their table (or view) so that it contains this field.
Daniel Vassdal [Sun, 22 Feb 2015 13:35:34 +0000 (14:35 +0100)]
m_sqloper.sqlite3.sql: Add `active` column
Daniel Vassdal [Sat, 21 Feb 2015 11:39:31 +0000 (12:39 +0100)]
m_sqloper.postgresql.sql: Add `active` column
Daniel Vassdal [Sat, 21 Feb 2015 11:37:42 +0000 (12:37 +0100)]
m_sqloper.mssql.sql: Add `active` column
Daniel Vassdal [Sat, 21 Feb 2015 11:18:27 +0000 (12:18 +0100)]
m_sqloper.mysql.sql: Add `active` column
Daniel Vassdal [Sat, 21 Feb 2015 11:09:40 +0000 (12:09 +0100)]
m_sqloper.mysql.sql: TYPE is deprecated as of MySQL 5.5
"The older TYPE option that was synonymous with ENGINE was removed in MySQL 5.5."
https://dev.mysql.com/doc/refman/5.6/en/create-table.html
Peter Powell [Fri, 20 Feb 2015 19:14:31 +0000 (19:14 +0000)]
Fix oversight which caused problems with Clang on OSX.
Attila Molnar [Thu, 19 Feb 2015 23:57:10 +0000 (00:57 +0100)]
Change all occurrences of Inspire to InspIRCd
Attila Molnar [Thu, 19 Feb 2015 23:49:14 +0000 (00:49 +0100)]
Merge pull request #997 from SaberUK/master+compiler-detection
Improve compiler detection in configure; update supported compiler tests.
Peter Powell [Wed, 18 Feb 2015 15:30:08 +0000 (15:30 +0000)]
Remove a workaround for a compiler which is no longer supported.
Peter Powell [Wed, 18 Feb 2015 15:20:58 +0000 (15:20 +0000)]
Add the <type_traits> header to the compiler test file.
Peter Powell [Wed, 18 Feb 2015 15:16:40 +0000 (15:16 +0000)]
Improve compiler detection in configure.
- Split the detection and compatibility checks into two different
steps (previously it was confusing as it would say the compiler
was not available when it was really not compatible).
- Fix a minor bug where compilers detected using xcrun on Darwin
would not have xcrun returned as part of the compiler name from
find_compiler.
Attila Molnar [Tue, 17 Feb 2015 15:10:04 +0000 (16:10 +0100)]
Merge pull request #992 from SaberUK/insp20+fix-error-message
[2.0] Fix erroneous error messages in configure.
Attila Molnar [Sun, 15 Feb 2015 16:58:47 +0000 (17:58 +0100)]
Eliminate constant return value of the all events version of ModuleManager::SetPriority()
Attila Molnar [Sun, 15 Feb 2015 16:56:01 +0000 (17:56 +0100)]
Convert mods calling the old compat wrapper of ModuleManager::SetPriority() to use the current method, remove wrapper
Attila Molnar [Sun, 15 Feb 2015 16:50:41 +0000 (17:50 +0100)]
Remove I_BEGIN from enum Implementation
Peter Powell [Thu, 12 Feb 2015 22:12:41 +0000 (22:12 +0000)]
Fix erroneous error messages in configure.
Attila Molnar [Thu, 12 Feb 2015 15:54:34 +0000 (16:54 +0100)]
m_spanningtree Pass Server* to the OnServerLink/OnServerSplit events
Attila Molnar [Thu, 12 Feb 2015 15:35:02 +0000 (16:35 +0100)]
Merge branch 'master+crossmodevents'
Attila Molnar [Thu, 12 Feb 2015 15:29:40 +0000 (16:29 +0100)]
m_httpd_stats Remove days/hours/mins/secs from <uptime>
Uptime can be calculated easily from the boot time
Attila Molnar [Thu, 12 Feb 2015 15:22:06 +0000 (16:22 +0100)]
m_httpd_stats Fix pointer being shown instead of server name in <user>
Attila Molnar [Wed, 11 Feb 2015 16:26:16 +0000 (17:26 +0100)]
m_httpd Remove now unused variable "claimed"
Attila Molnar [Wed, 11 Feb 2015 16:24:14 +0000 (17:24 +0100)]
Remove class Event and the OnEvent hook
Attila Molnar [Wed, 11 Feb 2015 16:23:08 +0000 (17:23 +0100)]
Convert the spanningtree events to use the new cross-module event system
Attila Molnar [Wed, 11 Feb 2015 16:15:57 +0000 (17:15 +0100)]
Remove unused parameters from HTTPRequest constructor
Attila Molnar [Wed, 11 Feb 2015 16:13:08 +0000 (17:13 +0100)]
Convert the HTTPd request event to use the new cross-module event system
Attila Molnar [Wed, 11 Feb 2015 16:09:59 +0000 (17:09 +0100)]
Convert the HTTPd ACL event to use the new cross-module event system
Attila Molnar [Wed, 11 Feb 2015 16:04:26 +0000 (17:04 +0100)]
Convert the SASL fallback event to use the new cross-module event system
Attila Molnar [Wed, 11 Feb 2015 16:01:00 +0000 (17:01 +0100)]
Convert the CAP event to use the new cross-module event system
Attila Molnar [Wed, 11 Feb 2015 15:52:39 +0000 (16:52 +0100)]
Allow enabling/disabling caps via GenericCap::SetActive()
Attila Molnar [Wed, 11 Feb 2015 15:46:11 +0000 (16:46 +0100)]
Convert the account login event to use the new cross-module event system
Attila Molnar [Wed, 11 Feb 2015 15:38:40 +0000 (16:38 +0100)]
Add new cross-module event system
Attila Molnar [Wed, 11 Feb 2015 15:12:12 +0000 (16:12 +0100)]
Add missing const operators to dynamic_reference[_nocheck]
Attila Molnar [Wed, 11 Feb 2015 15:06:47 +0000 (16:06 +0100)]
Allow dynrefs to have an OnCapture() hook
Attila Molnar [Wed, 11 Feb 2015 15:03:21 +0000 (16:03 +0100)]
Ensure all dynrefs with the same target resolve to the same object when one name points to multiple objects
Attila Molnar [Sun, 8 Feb 2015 23:09:38 +0000 (00:09 +0100)]
Remove outdated ircservices and neostats config examples
Issue #991
Attila Molnar [Thu, 5 Feb 2015 23:25:42 +0000 (00:25 +0100)]
Merge branch 'master+tlsversion'
Attila Molnar [Thu, 5 Feb 2015 23:17:09 +0000 (00:17 +0100)]
Merge pull request #986 from StevenVanAcker/fix-initscript2
Making init-script exit codes compliant with LSB 4.1
Attila Molnar [Thu, 5 Feb 2015 23:16:46 +0000 (00:16 +0100)]
Merge pull request #984 from Renegade334/modules-exempt-uline
Allow U-lined services to bypass m_silence (configurable)
Florian Praden [Mon, 2 Feb 2015 14:25:24 +0000 (15:25 +0100)]
m_mysql Add charset config option
Steven Van Acker [Thu, 5 Feb 2015 16:51:18 +0000 (17:51 +0100)]
Making init-script exit codes compliant with LSB 4.1
Attila Molnar [Thu, 5 Feb 2015 16:37:49 +0000 (17:37 +0100)]
Merge pull request #976 from SaberUK/master+fix-xline-db
Fix xline reasons being truncated in m_xline_db.
Attila Molnar [Thu, 5 Feb 2015 16:37:26 +0000 (17:37 +0100)]
Merge pull request #971 from SaberUK/master+numeric-xline
Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.
Renegade334 [Thu, 5 Feb 2015 15:00:44 +0000 (15:00 +0000)]
modules/m_silence: Allow U-lined services to bypass silence masks
Adds a config entry (silence->exemptuline) that specifies whether
users on U-lined servers can bypass silence masks.
Attila Molnar [Wed, 4 Feb 2015 18:16:20 +0000 (19:16 +0100)]
cmd_userhost List 5 users in the reply even if the query (incorrectly) contains more than 5 nicks
Attila Molnar [Wed, 4 Feb 2015 17:53:28 +0000 (18:53 +0100)]
m_spanningtree Fix TreeRoot UserCount being possibly wrong if loaded after startup
Attila Molnar [Mon, 2 Feb 2015 22:39:40 +0000 (23:39 +0100)]
threadengine_pthread Throw CoreExceptions instead of CoreException pointers
Peter Powell [Thu, 29 Jan 2015 15:32:28 +0000 (15:32 +0000)]
Fix xline reasons being truncated in m_xline_db.
This error was introduced in
bbeb5ea3 .
Attila Molnar [Tue, 27 Jan 2015 15:55:28 +0000 (16:55 +0100)]
m_ssl_gnutls, m_ssl_openssl Prepend TLS protocol version to ciphersuite string
Attila Molnar [Tue, 27 Jan 2015 15:52:21 +0000 (16:52 +0100)]
m_ssl_gnutls, m_ssl_openssl Extract code that builds a ciphersuite string into a method
Attila Molnar [Mon, 26 Jan 2015 14:05:22 +0000 (15:05 +0100)]
Merge branch 'master+foreachneighbor'
Attila Molnar [Sun, 25 Jan 2015 12:46:21 +0000 (13:46 +0100)]
Merge branch 'master+cmdcleanup'
Attila Molnar [Sun, 25 Jan 2015 12:41:24 +0000 (13:41 +0100)]
m_spanningtree Rewrite PING logic to use Timers
Attila Molnar [Sat, 24 Jan 2015 14:02:25 +0000 (15:02 +0100)]
Remove needless checks from User::WriteCommon()/WriteCommonRaw()
Attila Molnar [Sat, 24 Jan 2015 13:58:31 +0000 (14:58 +0100)]
m_ircv3 Implement WriteNeighboursWithExt() using User::ForEachNeighbor()
Attila Molnar [Sat, 24 Jan 2015 13:55:10 +0000 (14:55 +0100)]
Implement User::WriteCommonRaw() using ForEachNeighbor()
Attila Molnar [Sat, 24 Jan 2015 13:53:03 +0000 (14:53 +0100)]
Implement User::WriteCommonQuit() using ForEachNeighbor() in UserManager
Attila Molnar [Sat, 24 Jan 2015 13:49:10 +0000 (14:49 +0100)]
Add User::ForEachNeighbor()
Attila Molnar [Sat, 24 Jan 2015 13:10:38 +0000 (14:10 +0100)]
Move implementation of Command and CommandBase functions into a source file
Attila Molnar [Sat, 24 Jan 2015 13:08:02 +0000 (14:08 +0100)]
Remove unused CommandBase::DecodeParameter()
Attila Molnar [Sat, 24 Jan 2015 13:06:42 +0000 (14:06 +0100)]
Switch to unsigned ints in CommandBase constructor for min and max params
Peter Powell [Fri, 23 Jan 2015 20:09:31 +0000 (20:09 +0000)]
Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.
This is specified in RFC 1459 so we should probably use it.
Attila Molnar [Fri, 23 Jan 2015 14:59:35 +0000 (15:59 +0100)]
Merge branch 'master+no-rtti'
Attila Molnar [Fri, 23 Jan 2015 14:50:18 +0000 (15:50 +0100)]
m_kicknorejoin Store kicked users in a vector
Attila Molnar [Fri, 23 Jan 2015 14:46:03 +0000 (15:46 +0100)]
m_kicknorejoin Move logic that tracks kicked users into KickRejoinData
Attila Molnar [Thu, 22 Jan 2015 11:19:01 +0000 (12:19 +0100)]
Disable RTTI in release builds (compile with -fno-rtti)
Attila Molnar [Thu, 22 Jan 2015 11:14:25 +0000 (12:14 +0100)]
Merge branch 'master+exttype' into master+no-rtti
Attila Molnar [Thu, 22 Jan 2015 11:12:41 +0000 (12:12 +0100)]
Disable typeid() calls unless INSPIRCD_ENABLE_RTTI is defined
Attila Molnar [Wed, 21 Jan 2015 18:08:30 +0000 (19:08 +0100)]
m_abbreviation Fix typo in numeric text
Attila Molnar [Wed, 21 Jan 2015 18:07:44 +0000 (19:07 +0100)]
Fix numeric ERR_NOTREGISTERED not containing the user's nick
Attila Molnar [Wed, 21 Jan 2015 18:04:10 +0000 (19:04 +0100)]
Merge pull request #961 from SaberUK/insp20+fix-snotice
Fix a snotice in m_spanningtree incorrectly using an unsigned long.
Attila Molnar [Tue, 20 Jan 2015 16:49:04 +0000 (17:49 +0100)]
m_spanningtree Remove public TreeServer methods that are only called from TreeServer
Attila Molnar [Tue, 20 Jan 2015 16:42:31 +0000 (17:42 +0100)]
m_spanningtree Get rid of some boilerplate
Make methods const while at it
Attila Molnar [Mon, 19 Jan 2015 16:47:03 +0000 (17:47 +0100)]
Merge branch 'insp20+penalty' into insp20
Attila Molnar [Mon, 19 Jan 2015 16:43:58 +0000 (17:43 +0100)]
m_operprefix Fix force joined opers not being given the operprefix mode
Attila Molnar [Mon, 19 Jan 2015 16:38:30 +0000 (17:38 +0100)]
Don't bind ports after an unsuccessful rehash
Attila Molnar [Sun, 18 Jan 2015 09:44:02 +0000 (10:44 +0100)]
m_services_account Replace dynamic_cast with static_cast as we know the object is a User
Attila Molnar [Sun, 18 Jan 2015 09:42:39 +0000 (10:42 +0100)]
m_spanningtree Only unserialize() METADATA if the object type matches ExtensionItem::type
Attila Molnar [Sun, 18 Jan 2015 09:40:33 +0000 (10:40 +0100)]
Specify which Extensible subclass an ExtensionItem is valid for