]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
Attila Molnar [Mon, 24 Jun 2013 20:53:58 +0000 (13:53 -0700)]
Merge pull request #563 from ElementalAlchemist/patch-1
Prevent m_cgiirc from blocking indefinitely
ElementalAlchemist [Thu, 20 Jun 2013 17:26:22 +0000 (14:26 -0300)]
Prevent m_cgiirc from blocking indefinitely, resulting in registration timeouts on e.g. Mibbit when webirc is not used
attilamolnar [Wed, 12 Jun 2013 16:11:51 +0000 (18:11 +0200)]
m_spanningtree FJOIN handler: Merge and take maxmodes into consideration when applying non-prefix modes
attilamolnar [Sun, 9 Jun 2013 23:10:15 +0000 (01:10 +0200)]
Fix high CPU use on Windows when connecting to a server
When getting a write event for an EventHandler that wanted a single write only, remove it from the WriteSet (socketengine_select)
Fixes #556 reported by @WindowsUser
attilamolnar [Wed, 5 Jun 2013 21:28:45 +0000 (23:28 +0200)]
Release 2.0.13
attilamolnar [Wed, 5 Jun 2013 21:11:50 +0000 (23:11 +0200)]
Remove unnecessary string copies and dead code
attilamolnar [Wed, 5 Jun 2013 20:40:09 +0000 (22:40 +0200)]
Report the full GnuTLS version in configure
Fix incorrect version being reported when the minor version is longer than one digit (2.10.x)
attilamolnar [Tue, 4 Jun 2013 20:16:15 +0000 (22:16 +0200)]
m_spanningtree Fix FIDENT routing
A new FIDENT was broadcast for each incoming FIDENT causing harmless but unnecessary server to server traffic
attilamolnar [Tue, 4 Jun 2013 19:43:29 +0000 (21:43 +0200)]
Fix inet_pton on Windows with IPv6 addresses
Code from Anope win32/socket.cpp by @Adam-
attilamolnar [Tue, 4 Jun 2013 19:38:03 +0000 (21:38 +0200)]
attilamolnar [Sat, 1 Jun 2013 18:53:45 +0000 (20:53 +0200)]
cmd_who Hide +i users when listing users on a server and hidewhois is off
Fixes #547 reported by @RawrDragon
attilamolnar [Sat, 1 Jun 2013 18:53:32 +0000 (20:53 +0200)]
m_mysql Fix escaping strings longer than MAXBUF/2
Quotes from the documentation:
"You must allocate the to buffer to be at least length*2+1 bytes long. (In the worst case, each character may need to be encoded as using two bytes, and you need room for the terminating null byte.)"
"The return value is the length of the encoded string, not including the terminating null character."
http://dev.mysql.com/doc/refman/5.6/en/mysql-real-escape-string.html
attilamolnar [Thu, 16 May 2013 17:49:56 +0000 (19:49 +0200)]
m_userip Allow querying own IP for non-opers, require the users/auspex priv for opers to query the IP of others
Issue #513 suggested by @CuleX
attilamolnar [Thu, 23 May 2013 18:19:16 +0000 (20:19 +0200)]
m_nicklock Fix wrong hook in SetPriority()
attilamolnar [Thu, 23 May 2013 18:12:09 +0000 (20:12 +0200)]
Update authors
attilamolnar [Wed, 22 May 2013 20:29:15 +0000 (22:29 +0200)]
m_mysql Fix crash on rehash when the database tags have been changed in the config
attilamolnar [Sat, 18 May 2013 19:02:09 +0000 (21:02 +0200)]
m_channames Fix iteration in ValidateChans()
Spotted by @Adam-
attilamolnar [Sat, 18 May 2013 14:05:08 +0000 (16:05 +0200)]
m_httpd_acl Reread config on rehash
attilamolnar [Sat, 18 May 2013 14:04:10 +0000 (16:04 +0200)]
m_geoip Set cc in OnSetConnectClass to the newly created string if it was NULL
attilamolnar [Sat, 18 May 2013 14:03:17 +0000 (16:03 +0200)]
Initialize local_count
Adam [Thu, 16 May 2013 23:57:53 +0000 (19:57 -0400)]
Fix m_randquote with 0 quotes
attilamolnar [Thu, 16 May 2013 18:51:12 +0000 (20:51 +0200)]
Workaround for std::list::size() having linear complexity on some implementations
attilamolnar [Thu, 16 May 2013 18:33:46 +0000 (20:33 +0200)]
Remove unused variables, avoid copies where possible, check empty() instead of size() == 0
Most of these were detected by cppcheck
attilamolnar [Wed, 15 May 2013 18:02:55 +0000 (20:02 +0200)]
Fix thread handle leak in threadengine_win32
Attila Molnar [Tue, 7 May 2013 01:18:50 +0000 (18:18 -0700)]
Merge pull request #526 from SaberUK/insp20+connectban-fix
[2.0] Fix an extremely low risk crash bug in m_connectban.
Peter Powell [Mon, 6 May 2013 16:39:24 +0000 (17:39 +0100)]
Fix an extremely low risk crash bug in m_connectban.
attilamolnar [Thu, 2 May 2013 21:45:10 +0000 (23:45 +0200)]
m_ssl_gnutls Call gnutls_transport_set_errno() on Windows only
Adam [Wed, 1 May 2013 09:00:13 +0000 (04:00 -0500)]
Fix gnutls (again) on Windows by using gnutls_transport_set_errno()
Adam [Tue, 30 Apr 2013 03:09:09 +0000 (23:09 -0400)]
Fix logfile path on Windows
Fixes issue #510 reported by @JDowny
Adam [Tue, 30 Apr 2013 02:47:15 +0000 (22:47 -0400)]
Fix disabling IPV6_V6ONLY on sockets, issue #511
Attila Molnar [Sat, 27 Apr 2013 23:02:09 +0000 (16:02 -0700)]
Merge pull request #509 from SaberUK/insp20+make-distclean
Fix a few minor issues with `make distclean`.
Peter Powell [Sat, 27 Apr 2013 17:20:56 +0000 (18:20 +0100)]
Fix a few minor issues with `make distclean`.
- Only remove the base directory for in-source installs.
- Use full paths to the source directory.
- Update the help message to be more accurate.
attilamolnar [Wed, 24 Apr 2013 17:55:01 +0000 (19:55 +0200)]
Release 2.0.12
attilamolnar [Wed, 24 Apr 2013 17:54:58 +0000 (19:54 +0200)]
Move SocketEngine::IgnoreError() code into socketengine.h and add test for EWOULDBLOCK
attilamolnar [Sun, 10 Mar 2013 13:08:51 +0000 (14:08 +0100)]
m_ssl_gnutls Add ability to load DH params from file
This greatly decreases the load time because the DH parameters no longer have to be (re)generated each time the module is loaded
attilamolnar [Tue, 23 Apr 2013 13:10:33 +0000 (15:10 +0200)]
m_spanningtree Fix crash when connecting to a remote server that has the same name as we do and also there is a link block with our server name and their password
See
49223cfe12ecd9071123f724e615e63841f2421d
attilamolnar [Tue, 23 Apr 2013 13:01:15 +0000 (15:01 +0200)]
Add config option to disable somaxconn range() check
attilamolnar [Sun, 21 Apr 2013 16:09:41 +0000 (18:09 +0200)]
m_rline Switch to OnUserRegister hook to disconnect banned users earlier
attilamolnar [Sun, 21 Apr 2013 16:03:07 +0000 (18:03 +0200)]
m_filter, m_rline Remove rlines and filters when the regex engine changes or becomes unavailable
attilamolnar [Sun, 21 Apr 2013 15:41:03 +0000 (17:41 +0200)]
m_filter Fix memory leak on unload
attilamolnar [Sun, 21 Apr 2013 15:20:28 +0000 (17:20 +0200)]
Log some internal errors on DEFAULT loglevel instead of DEBUG, log detected errors in m_callerid
attilamolnar [Sun, 21 Apr 2013 13:40:19 +0000 (15:40 +0200)]
m_permchannels Workaround for alphabetical module initialization order
Read database after all modules have been inited
Add exception logging
Fixes #485 reported by @gholms
attilamolnar [Sun, 21 Apr 2013 13:30:51 +0000 (15:30 +0200)]
Don't crop the channel name if it's too long in Channel::Channel()
...and especially don't use the shortened name in one place and the original in another
Having different <limits:maxchan> values on the same network is not supported
attilamolnar [Fri, 19 Apr 2013 15:07:10 +0000 (17:07 +0200)]
Immediately stop processing whenever we detect and handle a RecvQ overrun
Thanks to @SimosNap for the report and cooperation
attilamolnar [Fri, 19 Apr 2013 15:06:35 +0000 (17:06 +0200)]
Fix uuids getting truncated in the nick hash in UserManager::AddUser() if nickmax is < 9
attilamolnar [Fri, 19 Apr 2013 15:06:07 +0000 (17:06 +0200)]
m_ident Invalidate cache after changing User::ident
attilamolnar [Fri, 19 Apr 2013 15:05:50 +0000 (17:05 +0200)]
m_callerid Allow messaging yourself while +g regardless of the ACCEPT list
attilamolnar [Thu, 18 Apr 2013 20:50:12 +0000 (22:50 +0200)]
m_spanningtree Fix IS_LOCAL() check in OnRehash handler
attilamolnar [Thu, 18 Apr 2013 11:25:28 +0000 (13:25 +0200)]
m_callerid Ignore duplicate entries when unserializing callerid_data
attilamolnar [Thu, 18 Apr 2013 01:30:22 +0000 (03:30 +0200)]
m_callerid Fix bookkeeping error introduced when unserializing callerid_data
This also fixes a memory leak that didn't occur naturally but was triggerable by remote servers
Thanks to @SimosNap for the report
Adam [Tue, 16 Apr 2013 08:34:58 +0000 (03:34 -0500)]
Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing WSAEWOULDBLOCK
attilamolnar [Tue, 16 Apr 2013 11:20:24 +0000 (13:20 +0200)]
m_kicknorejoin Store and compare uuids instead pointers
Fixes the off chance scenario where we disallow a join because a previously kicked user has quit and the User who is trying to join happens to be allocated at the exact same memory location
attilamolnar [Mon, 18 Feb 2013 18:56:05 +0000 (19:56 +0100)]
m_kicknorejoin Limit time to 30m by default
In the current implementation we only expire entries when someone joins, without a limit it was possible to make us practically never remove entries and consume (a tiny amount of) memory for each entry until the mode was removed/parameter was changed
The default limit of 30m is chosen to not surprise people when they upgrade. If you need to prevent rejoins for more than a minute then you should set a (timed)ban instead
Config option is available to change the limit (2.0 only)
attilamolnar [Sun, 2 Dec 2012 16:54:23 +0000 (17:54 +0100)]
m_kicknorejoin Minor improvements
- Ignore remote users
- Remove expired items in one pass
attilamolnar [Tue, 16 Apr 2013 11:11:21 +0000 (13:11 +0200)]
Close listening sockets regardless of the return value of shutdown()
attilamolnar [Mon, 15 Apr 2013 22:20:01 +0000 (00:20 +0200)]
Do not enable SO_LINGER on our sockets
Using this option allowed close() to block for up to a second
Thanks to Shamsdeen and Rix for their assistance that made this fix possible
Fixes issue #445 reported by @shaggie76
Fixes issue #494 reported by @Rixcho
Attila Molnar [Wed, 10 Apr 2013 19:28:22 +0000 (12:28 -0700)]
Merge pull request #484 from SaberUK/insp20+fix-modulemanager
Fix ModuleManager error caused by a lack of arguments.
Peter Powell [Wed, 10 Apr 2013 05:06:53 +0000 (06:06 +0100)]
Fix ModuleManager error caused by a lack of arguments.
attilamolnar [Wed, 10 Apr 2013 15:05:13 +0000 (17:05 +0200)]
m_spanningtree Create new TreeServers for incoming connections only when they've accepted our credentials, not when they send SERVER
attilamolnar [Tue, 9 Apr 2013 16:57:05 +0000 (18:57 +0200)]
Remove some uline checks that ran after an IS_LOCAL() check
attilamolnar [Fri, 5 Apr 2013 16:23:44 +0000 (18:23 +0200)]
Don't attempt to unload or reload modules that are waiting to be unloaded
attilamolnar [Fri, 5 Apr 2013 16:21:16 +0000 (18:21 +0200)]
Fix LUSERS not working in a PURE_STATIC build
attilamolnar [Mon, 1 Apr 2013 14:42:04 +0000 (16:42 +0200)]
cmd_stats List opers without iterating the whole userlist
attilamolnar [Mon, 1 Apr 2013 14:32:01 +0000 (16:32 +0200)]
cmd_invite Check if the inviting user is on the channel before potentially telling him the target is already on it
attilamolnar [Sun, 31 Mar 2013 17:52:43 +0000 (19:52 +0200)]
Minor update to example configs
attilamolnar [Fri, 29 Mar 2013 01:16:32 +0000 (02:16 +0100)]
Release 2.0.11
attilamolnar [Sun, 24 Mar 2013 21:19:44 +0000 (22:19 +0100)]
cmd_kill Send snotice to servers when both the oper and the victim are on the same server
attilamolnar [Fri, 29 Mar 2013 00:09:55 +0000 (01:09 +0100)]
Update doc and fix the description of m_allowinvite
attilamolnar [Sat, 23 Mar 2013 20:08:04 +0000 (21:08 +0100)]
m_ldapoper Make the module actually work
Fixes #439 reported by @rhylan
attilamolnar [Mon, 11 Mar 2013 18:53:54 +0000 (19:53 +0100)]
m_ldapoper Fix memory leak
See
1813369adecc1efc9812e90c40c21dc32e4965c9 for details
attilamolnar [Thu, 28 Mar 2013 14:06:47 +0000 (15:06 +0100)]
Fix premature overwriting of OLDTIME that resulted in time drifts never being detected
attilamolnar [Wed, 27 Mar 2013 20:49:59 +0000 (21:49 +0100)]
cmd_lusers Fix miscounting
Attila Molnar [Tue, 26 Mar 2013 16:41:48 +0000 (09:41 -0700)]
Merge pull request #443 from ShutterQuick/sasl_external
Added support for SASL EXTERNAL
Daniel Vassdal [Mon, 25 Mar 2013 14:04:26 +0000 (15:04 +0100)]
Added support for EXTERNAL
attilamolnar [Mon, 17 Dec 2012 01:40:02 +0000 (02:40 +0100)]
m_xline_db Fix pointless excessive stack usage in ReadDatabase()
attilamolnar [Mon, 17 Dec 2012 01:20:06 +0000 (02:20 +0100)]
m_xline_db Major enhancements
- Save database on a timer, not on every single change
- Use the internal database instead of keeping track of xlines ourselves
attilamolnar [Mon, 25 Mar 2013 14:18:20 +0000 (15:18 +0100)]
Accept -c as a command line argument (equivalent to --config)
ChrisTX [Sat, 23 Mar 2013 22:52:51 +0000 (23:52 +0100)]
Win32: Rewrite the service wrapper
Edited original commit to pass MAX_PATH as nSize to GetModuleFileNameA() instead of 101 after approval from author @ChrisTX (Attila Molnar)
Fixes #404 reported by @crchauffe
attilamolnar [Sun, 24 Mar 2013 19:20:19 +0000 (20:20 +0100)]
Initialize the FakeClient pointer in InspIRCd::InspIRCd()
attilamolnar [Sun, 24 Mar 2013 18:11:36 +0000 (19:11 +0100)]
m_timedbans Notice halfops and above when a timed ban is placed
Fixes #415 reported by @killerrabbit
Adam [Sun, 24 Mar 2013 03:47:25 +0000 (22:47 -0500)]
win: Made config, modules, data, and log paths configurable.
Update win/README with instructions on how to use cmake-gui.
Always build m_regex_stdlib, since all VS versions we support
support it.
attilamolnar [Wed, 20 Mar 2013 22:43:51 +0000 (23:43 +0100)]
Fix infinite loop when all DNS request slots are in use
This is not the best way to detect this scenario, a better detection mechanism will replace this in the future
attilamolnar [Tue, 12 Mar 2013 17:21:21 +0000 (18:21 +0100)]
Add support for mandatory tags in included config files
If the mandatory tag is not found in the included config, the rehash is aborted. This is especially useful for remote includes, as it allows users to have a dummy tag at the end of the included config to indicate that the config has been wholly read.
This method does not depend on exit codes so even situations where wget returns an empty or a wrong page that we would otherwise accept can be detected and an error can be generated before we assume that the contents have disappeared (and unload all modules, if the included file is supposed to contain module tags, for example).
Usage: <include ... mandatorytag="namehere"> - if the included config doesn't contain a <namehere> tag then the rehash is aborted
Fixes #30 reported by @Justasic
attilamolnar [Wed, 13 Mar 2013 15:41:44 +0000 (16:41 +0100)]
m_spanningtree Fix incoming channel modes being lost for 0-user permanent channels on the losing side of a netmerge
This did not affect listmodes
attilamolnar [Tue, 12 Mar 2013 19:45:02 +0000 (20:45 +0100)]
m_permchannels Load channels from the config only at module load time and only when there are no linked servers to avoid desync
attilamolnar [Tue, 19 Mar 2013 17:06:22 +0000 (18:06 +0100)]
m_connflood Ignore e-lined users
Adam [Fri, 15 Mar 2013 20:10:53 +0000 (15:10 -0500)]
Link win32_memory too inspircd too
attilamolnar [Tue, 12 Mar 2013 15:30:45 +0000 (16:30 +0100)]
m_ssl_openssl Make it clear that a CA file is not mandatory
ShutterQuick [Thu, 7 Mar 2013 19:23:47 +0000 (11:23 -0800)]
Modified m_timedbans to behave more like setting mode +b manually.
It now accepts extbans. If one enters something not an extban, or valid banmask, it'll add "!*@*", making it a nick-ban instead of borking.
Adam [Thu, 14 Mar 2013 19:19:41 +0000 (15:19 -0400)]
Replace Windows build system and installer with cmake
attilamolnar [Mon, 11 Mar 2013 19:52:21 +0000 (20:52 +0100)]
Remove dead code from DNS
attilamolnar [Sun, 3 Mar 2013 22:20:12 +0000 (23:20 +0100)]
m_connectban Switch to OnSetUserIP hook to handle cgiirc users properly, ignore e-lined users
attilamolnar [Sun, 3 Mar 2013 22:13:54 +0000 (23:13 +0100)]
Fix m_dnsbl not checking cgiirc users when the cgiirc address is elined
attilamolnar [Sat, 2 Mar 2013 20:45:14 +0000 (21:45 +0100)]
Either store the Resolver in DNS::AddResolverClass() or delete it before returning
attilamolnar [Sat, 2 Mar 2013 20:36:44 +0000 (21:36 +0100)]
Stop user initialization when the user is marked as quitting after OnSetUserIP
attilamolnar [Sat, 2 Mar 2013 20:36:15 +0000 (21:36 +0100)]
m_dnsbl Fix connecting users timeouting when a dnsbl result is in the dns cache
Fixes #431 reported by @killerrabbit
Attila Molnar [Sat, 9 Mar 2013 19:22:36 +0000 (11:22 -0800)]
Merge pull request #437 from SaberUK/insp20+doxygen-update
Update Doxyfile for the latest version of Doxygen.
Peter Powell [Fri, 8 Mar 2013 16:50:04 +0000 (16:50 +0000)]
Update Doxyfile for the latest version of Doxygen.
attilamolnar [Thu, 1 Nov 2012 22:34:28 +0000 (23:34 +0100)]
cmd_lusers Be smart and know how many invisible users are there without iterating the userlist
attilamolnar [Tue, 12 Feb 2013 20:21:17 +0000 (21:21 +0100)]
cmd_lusers Use of size() instead of counting elements