]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
attilamolnar [Mon, 11 Feb 2013 16:47:51 +0000 (17:47 +0100)]
cmd_invite Correct error message when the user has no privs to invite and no halfop prefix is available
attilamolnar [Mon, 11 Feb 2013 15:16:39 +0000 (16:16 +0100)]
Fix exactly <limits:maxchan> long channel names being truncated
Fixes #422 reported by @RawrDragon
Attila Molnar [Sun, 3 Feb 2013 15:01:56 +0000 (07:01 -0800)]
Merge pull request #416 from SaberUK/insp20+clang42-warnings
Remove unused variables detected by Clang 4.2.
Peter Powell [Thu, 31 Jan 2013 11:37:52 +0000 (11:37 +0000)]
Remove unused variables detected by Clang 4.2.
Attila Molnar [Mon, 28 Jan 2013 21:57:10 +0000 (13:57 -0800)]
Merge pull request #414 from SaberUK/insp20+hashmap
[2.0] Use the preprocessor to detect whether hash_map is available.
Attila Molnar [Mon, 28 Jan 2013 21:53:06 +0000 (13:53 -0800)]
Merge pull request #413 from SaberUK/insp20+httpd
[2.0] Use a better server name in m_httpd.
Peter Powell [Fri, 4 Jan 2013 18:22:29 +0000 (18:22 +0000)]
Use the preprocessor to detect whether hash_map is available.
Peter Powell [Fri, 4 Jan 2013 15:26:49 +0000 (15:26 +0000)]
Use a better server name in m_httpd.
attilamolnar [Mon, 28 Jan 2013 20:10:11 +0000 (21:10 +0100)]
m_ssl_gnutls Fix build with GnuTLS 1.x
Fixes #409 reported by @SaberUK
attilamolnar [Sun, 27 Jan 2013 16:22:18 +0000 (17:22 +0100)]
m_chanhistory Fix durations containing 'S' being rejected
Peter Powell [Fri, 25 Jan 2013 22:56:39 +0000 (22:56 +0000)]
Use GNU install on Solaris.
Attila Molnar [Tue, 22 Jan 2013 17:47:50 +0000 (09:47 -0800)]
Merge pull request #407 from SaberUK/insp20+fix-openssl-detection
Fix OpenSSL detection on distributions which modify the version number.
Peter Powell [Tue, 22 Jan 2013 10:52:56 +0000 (10:52 +0000)]
Fix OpenSSL detection on distributions which modify the version number.
Robin Burchell [Wed, 16 Jan 2013 11:18:13 +0000 (03:18 -0800)]
Merge pull request #403 from SaberUK/insp20+wextra-fixes
Fix warning: "const type qualifier on return type has no effect".
Peter Powell [Wed, 16 Jan 2013 11:06:44 +0000 (11:06 +0000)]
Fix warning: "const type qualifier on return type has no effect".
attilamolnar [Mon, 14 Jan 2013 18:59:47 +0000 (19:59 +0100)]
m_spanningtree Fix rare desync when a KILL crosses a message that has the killed user's prefix and modifies global state
attilamolnar [Sun, 13 Jan 2013 22:33:20 +0000 (23:33 +0100)]
m_maphide Ignore unregistered users
Fixes #400 reported by @SaberUK
Attila Molnar [Sat, 5 Jan 2013 15:44:55 +0000 (07:44 -0800)]
Merge pull request #397 from Robby-/insp20+cmode_b-limit
[2.0] cmode_b: Correction to the maxbans conditional
Robby- [Thu, 3 Jan 2013 18:35:02 +0000 (19:35 +0100)]
cmode_b: Correction to the maxbans conditional
It was possible to set one more ban beyond the configured limit.
attilamolnar [Wed, 2 Jan 2013 18:01:57 +0000 (19:01 +0100)]
m_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPreNotice
Fixes #394 reported by @JDowny
attilamolnar [Wed, 2 Jan 2013 17:36:09 +0000 (18:36 +0100)]
m_banredirect Deny the join to the redirect channel if it has a redirecting ban set that matches the user
Fixes #395 reported by @patatje368
attilamolnar [Wed, 2 Jan 2013 17:36:00 +0000 (18:36 +0100)]
m_banredirect Remove unnecessary hooks, cleanup
- Remove prioritization before m_banexception, it doesn't even hook OnUserPreJoin
- Remove OnChannelDelete handler: nothing to do in that case, our extension item is automatically freed
- Remove empty OnRehash handler
Peter Powell [Sun, 23 Dec 2012 18:40:53 +0000 (18:40 +0000)]
Replace a GNUmake idiom with the portable equivalent.
Peter Powell [Thu, 20 Dec 2012 00:45:59 +0000 (00:45 +0000)]
Include <list> in base.h to prevent build errors on OpenBSD.
Peter Powell [Thu, 20 Dec 2012 00:34:38 +0000 (00:34 +0000)]
Fix the poll socket engine on BSD's other than FreeBSD.
Peter Powell [Thu, 20 Dec 2012 00:07:32 +0000 (00:07 +0000)]
OpenBSD does not have KERN_MAXFILESPERPROC.
attilamolnar [Tue, 25 Dec 2012 17:26:47 +0000 (18:26 +0100)]
m_ldapoper Fix typo spotted by @lordsith49
Fixes #392
attilamolnar [Wed, 19 Dec 2012 00:23:42 +0000 (01:23 +0100)]
Fix errors in socketengine_ports so it compiles on Solaris
Thanks to fraggeln for reporting and testing
Peter Powell [Mon, 17 Dec 2012 04:35:32 +0000 (04:35 +0000)]
Fix property list arguments.
Adam [Mon, 17 Dec 2012 11:02:09 +0000 (06:02 -0500)]
Fixed m_ssl_gnutls build on Windows; gnutls.h uses ssize_t which is defined in gcrypt.h
attilamolnar [Sun, 16 Dec 2012 15:30:58 +0000 (16:30 +0100)]
Release 2.0.10
attilamolnar [Sun, 16 Dec 2012 15:08:39 +0000 (16:08 +0100)]
m_callerid Fix memory leak in CallerIDExtInfo::free()
attilamolnar [Sat, 1 Dec 2012 20:33:42 +0000 (21:33 +0100)]
Add a flag to Command that controls whether an empty last parameter is allowed or not
attilamolnar [Sat, 15 Dec 2012 18:41:58 +0000 (19:41 +0100)]
m_ident Reject invalid and error replies
attilamolnar [Mon, 19 Nov 2012 02:37:59 +0000 (03:37 +0100)]
Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a target nickname
If a SID was passed as the target user parameter or when it's an unregistered user reply with the "no such nick" (or the moral equivalent) message
attilamolnar [Sun, 9 Dec 2012 17:06:21 +0000 (18:06 +0100)]
Remove ServerLimits::Finalise(), it's completely wrong
Truncate <limits:identmax>+1 long idents in User::ChangeIdent()
attilamolnar [Sat, 8 Dec 2012 15:14:19 +0000 (16:14 +0100)]
Fix unsafe iteration in DelMode() when unloading m_permchannels
Peter Powell [Fri, 7 Dec 2012 17:26:56 +0000 (17:26 +0000)]
Fix #380 on BSD make.
Attila Molnar [Fri, 7 Dec 2012 15:00:11 +0000 (07:00 -0800)]
Merge pull request #380 from SaberUK/insp20+fix-clang-warning
Fix invalid argument warnings on clang.
Peter Powell [Fri, 7 Dec 2012 03:32:50 +0000 (03:32 +0000)]
Fix invalid argument warnings on clang.
attilamolnar [Wed, 5 Dec 2012 20:13:16 +0000 (21:13 +0100)]
m_svshold Fix crash when called with 2 params, only triggerable by u-lines
attilamolnar [Wed, 5 Dec 2012 20:13:05 +0000 (21:13 +0100)]
m_cban, m_rline, m_shun Don't broadcast when user is a local user
spanningtree sends an ADDLINE in this case
attilamolnar [Wed, 5 Dec 2012 19:51:51 +0000 (20:51 +0100)]
Change a few signed counter variables to unsigned so they roll over later
attilamolnar [Wed, 5 Dec 2012 18:59:34 +0000 (19:59 +0100)]
Fix expired xlines being treated as live ones in XLineManager::AddLine()
This fixes ADDLINEs not being propagated and /gline etc. failing for already existing but expired xlines
Special thanks to @JDowny (TinMan) for his detailed report and cooperation that made this fix possible
Fixes #306 reported by @TurkDesk
Fixes #379 reported by @JDowny
attilamolnar [Tue, 4 Dec 2012 15:21:44 +0000 (16:21 +0100)]
Unbreak m_geoip
attilamolnar [Mon, 3 Dec 2012 19:53:18 +0000 (20:53 +0100)]
Fix thread handle leak in StartServiceThread()
attilamolnar [Mon, 3 Dec 2012 19:32:22 +0000 (20:32 +0100)]
Fix broken RetrieveLastError()
- FORMAT_MESSAGE_IGNORE_INSERTS flag wasn't used and we never pass insertion parameters, this could cause FormatMessage() to fail
- The return value of FormatMessage() wasn't checked, if it returned zero (failure) then RetrieveLastError() returned garbage if err[] wasn't initialized previously
attilamolnar [Mon, 3 Dec 2012 17:11:18 +0000 (18:11 +0100)]
attilamolnar [Sun, 2 Dec 2012 23:34:59 +0000 (00:34 +0100)]
Properly shut down stdin
Replace hardcoded ints
attilamolnar [Sun, 2 Dec 2012 22:07:13 +0000 (23:07 +0100)]
m_remove Fix potential desync caused by committing the PART before getting acknowledgement from the target server
attilamolnar [Sun, 2 Dec 2012 18:59:42 +0000 (19:59 +0100)]
Fix DLLManager leak when an exception is thrown in init()
This also caused the dlopen()'d library to stay open forever
attilamolnar [Sun, 2 Dec 2012 18:40:33 +0000 (19:40 +0100)]
Throw an exception when attempting to register an extension with a name that already exists
Previously this silently failed
attilamolnar [Sun, 2 Dec 2012 18:40:26 +0000 (19:40 +0100)]
Register a few extensions that weren't registered
attilamolnar [Sun, 2 Dec 2012 18:40:17 +0000 (19:40 +0100)]
Register all commands, modes and extensions using AddService()
AddService() throws an exception if an item cannot be registered, modules no longer need to worry about AddMode() etc. failing
attilamolnar [Sun, 2 Dec 2012 18:40:00 +0000 (19:40 +0100)]
Dynamically determine the size of the eventlist[] passed to Attach()
m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
attilamolnar [Sat, 13 Oct 2012 01:12:29 +0000 (03:12 +0200)]
Attach to events and register services in init()
Attila Molnar [Sun, 2 Dec 2012 18:20:03 +0000 (10:20 -0800)]
Merge pull request #376 from SaberUK/insp20+fix-clean
Fix the list of files to be removed by make.
Peter Powell [Sun, 2 Dec 2012 17:58:13 +0000 (17:58 +0000)]
Fix the list of files to be removed by make.
attilamolnar [Tue, 20 Nov 2012 23:53:57 +0000 (00:53 +0100)]
Make LocalUserList an std::list
attilamolnar [Tue, 20 Nov 2012 23:15:13 +0000 (00:15 +0100)]
Add a typedef for LocalUserList
attilamolnar [Thu, 29 Nov 2012 19:12:33 +0000 (20:12 +0100)]
m_cgiirc Fix wrong announcement when the host in WEBIRC is too long
attilamolnar [Thu, 29 Nov 2012 18:39:13 +0000 (19:39 +0100)]
m_cgiirc Don't apply resolved host or send notifications when the user is quitting (matched a line)
attilamolnar [Thu, 29 Nov 2012 17:53:54 +0000 (18:53 +0100)]
m_cgiirc Don't resolve IPs when <performance:nouserdns> is true
attilamolnar [Wed, 21 Nov 2012 00:53:41 +0000 (01:53 +0100)]
m_cgiirc De-duplicate code, recheck elines after ip/host changes
Fixes #350 reported by @MistrX
New functions:
- RecheckElineAndClass()
- ChangeIP() - decreases clone counts for a user, calls SetUserIP, increases clone counts after the new ip is applied
- HandleIdentOrPass() - common code extracted from CheckIdent() and CheckPass()
attilamolnar [Wed, 21 Nov 2012 03:10:48 +0000 (04:10 +0100)]
m_cgiirc Remove dead code, warn when a <cgihost> block has an invalid type value, misc. cleanup
attilamolnar [Sat, 13 Oct 2012 14:35:19 +0000 (16:35 +0200)]
m_dnsbl Add usednsbl option to connect classes
Don't touch users in classes where it's off
attilamolnar [Wed, 21 Nov 2012 01:20:23 +0000 (02:20 +0100)]
Reorder local user initialization steps
OnSetUserIP hook now runs after the user has a connect class and the g/k/z lines were checked (ip only, no host at that point)
Fixes #360 reported by @JDowny
Allows #336
attilamolnar [Thu, 29 Nov 2012 14:31:08 +0000 (15:31 +0100)]
cmd_rehash, m_spanningtree Fix REHASH messages duplicating at each hop
Fixes #375 reported by @JDowny
Attila Molnar [Thu, 29 Nov 2012 14:47:32 +0000 (06:47 -0800)]
Merge pull request #374 from rburchell/ldapauth_vhosts
Ldapauth vhosts
Robin Burchell [Thu, 29 Nov 2012 09:06:22 +0000 (10:06 +0100)]
ldapauth: register both extensions
Robin Burchell [Wed, 28 Nov 2012 23:14:40 +0000 (00:14 +0100)]
ldapauth: RAII returned ldap message.
This ensures it is always freed, and coincidentally fixes freeing in the case of
LDAP errors.
Robin Burchell [Wed, 28 Nov 2012 22:27:40 +0000 (23:27 +0100)]
ldapauth: fix memory leak
ldap_get_dn() results need to be freed. Use a RAII wrapper to do this.
Original code by Attila Molnar
Robin Burchell [Wed, 28 Nov 2012 18:59:33 +0000 (19:59 +0100)]
ldapauth: Allow setting virtual hosts on identification with m_ldapauth.
<ldapauth:host>, when set, will be applied to users identifying with ldapauth.
The host can also take formatters from fields set on the DN of the user.
Robin Burchell [Wed, 28 Nov 2012 16:57:50 +0000 (17:57 +0100)]
ldapauth: Add missing verbose logging to required attributes.
Robin Burchell [Wed, 28 Nov 2012 16:53:44 +0000 (17:53 +0100)]
ldapauth: Rework required attributes code to use only one exit path.
This makes the upcoming patch to add optional virtual host support cleaner.
attilamolnar [Wed, 28 Nov 2012 01:37:49 +0000 (02:37 +0100)]
Change empty string assignments to .clear() or remove them entirely
Part 2 of
ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
attilamolnar [Wed, 28 Nov 2012 03:40:49 +0000 (04:40 +0100)]
Have FindUUID(const char*) call FindUUID(const std::string&), not the other way around
attilamolnar [Wed, 28 Nov 2012 02:22:02 +0000 (03:22 +0100)]
m_spanningtree Remove redundant params.size() checks
TreeSocket::ProcessConnectedLine() and CommandParser::CallHandler() only call the handler when there are enough parameters
Peter Powell [Wed, 28 Nov 2012 16:02:21 +0000 (16:02 +0000)]
Fix GnuTLS certificate generation on OS X.
Peter Powell [Tue, 27 Nov 2012 23:50:37 +0000 (23:50 +0000)]
Silence OpenSSL deprecation warnings on OS X.
attilamolnar [Sat, 24 Nov 2012 02:34:16 +0000 (03:34 +0100)]
m_noctcp Make extban 'C' work as intended
attilamolnar [Sat, 24 Nov 2012 02:05:47 +0000 (03:05 +0100)]
m_check, m_namesx, m_timedbans Minor cleanup
attilamolnar [Wed, 21 Nov 2012 04:04:37 +0000 (05:04 +0100)]
Simplify UserManager::AddLocalClone()/AddGlobalClone()
attilamolnar [Fri, 23 Nov 2012 18:52:24 +0000 (19:52 +0100)]
Remove TAXONOMY from opers.conf.example, it doesn't exist in 2.0
Fixes #369 reported by @DjGolia
attilamolnar [Mon, 19 Nov 2012 16:25:31 +0000 (17:25 +0100)]
m_ssl_gnutls Dynamically detect the number of certificates in the certfile
Remove the "certcount" setting, as it's no longer needed
When finished reading the certs, resize the buffer to the actual number of certs read
attilamolnar [Mon, 19 Nov 2012 03:41:41 +0000 (04:41 +0100)]
m_nokicks Remove u-line check, OnUserPreKick doesn't run in that case
attilamolnar [Sun, 18 Nov 2012 23:20:48 +0000 (00:20 +0100)]
m_customtitle Minor cleanup
- Remove TRANSLATE() as it makes no sense here (user parameter is not a nick)
- Compare strings with == instead of strcmp
- PassCompare uses strings, pass them as-is without c_str()
attilamolnar [Sun, 18 Nov 2012 21:53:46 +0000 (22:53 +0100)]
m_jumpserver Fix wrong nickname in the numeric when redirecting all users immediately, cleanup
- Fix typo
- Iterate string with iterator
- Move variables into the command handler that aren't used elsewhere
attilamolnar [Sat, 17 Nov 2012 02:18:08 +0000 (03:18 +0100)]
m_securelist Update description
attilamolnar [Sat, 17 Nov 2012 02:05:21 +0000 (03:05 +0100)]
m_remove Cleanup
- Command handler concatenates when maxparams is specified, don't do it ourselves
- String references to user and channel names are fine, no need for .c_str()
attilamolnar [Sun, 18 Nov 2012 22:53:50 +0000 (23:53 +0100)]
ServerConfig::ServerName is a std::string, don't call .c_str() on it when passing it to Channel::WriteChannelWithServ, etc.
attilamolnar [Wed, 4 Jul 2012 15:19:34 +0000 (17:19 +0200)]
m_remove, m_services_account Don't check whether nicks are u-lined, checking the server is enough
attilamolnar [Sat, 17 Nov 2012 01:36:29 +0000 (02:36 +0100)]
Change empty string assignments to .clear() or remove them entirely
attilamolnar [Fri, 16 Nov 2012 22:13:12 +0000 (23:13 +0100)]
m_globalload Fix wrong error message being sent when the module given to /gunloadmodule is not found
attilamolnar [Fri, 19 Oct 2012 00:09:30 +0000 (02:09 +0200)]
Remove usage of deprecated CallCommandHandler() and IsValidModuleCommand()
attilamolnar [Fri, 12 Oct 2012 23:39:43 +0000 (01:39 +0200)]
Remove calls to ListModeBase::OnCleanup (deprecated, empty function)
Peter Powell [Mon, 19 Nov 2012 00:37:29 +0000 (00:37 +0000)]
Fix m_ssl_gnutls under GCC on recent versions of GnuTLS.
Commas at the end of enumerator lists are valid in C99 but are not
valid in C++ before C++11. This causes a build error on GCC when
using -pedantic.
Attila Molnar [Sun, 18 Nov 2012 22:05:45 +0000 (14:05 -0800)]
Merge pull request #365 from StevenVanAcker/unhook-uid
unhook --uid from --system in configure script
Attila Molnar [Sun, 18 Nov 2012 21:59:21 +0000 (13:59 -0800)]
Merge pull request #366 from StevenVanAcker/autoconnect-reminder
added warning that autoconnect is now a separate tag
Steven Van Acker [Thu, 15 Nov 2012 16:29:31 +0000 (17:29 +0100)]
added warning that autoconnect is now a separate tag