]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
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
Steven Van Acker [Thu, 15 Nov 2012 16:54:41 +0000 (17:54 +0100)]
unhook --uid from --system in configure script
Specifying --uid allows the ircd to run as a specific user, while
--system fixes the install directories to be spread all over the system.
Specifying --uid shouldn't imply --system. This fix allows a uid to be set
while not interfering with --prefix
attilamolnar [Sat, 6 Oct 2012 19:43:20 +0000 (21:43 +0200)]
Remove usage of the deprecated ConfigReader
attilamolnar [Sun, 24 Jun 2012 15:05:31 +0000 (17:05 +0200)]
m_operprefix Enhance compatibility with m_hideoper using a ModeWatcher
Prioritize after m_opermodes, so we know when it sets +H on somebody
attilamolnar [Sun, 24 Jun 2012 15:05:31 +0000 (17:05 +0200)]
m_operprefix Switch to OnUserPreJoin hook to give +y to joining opers, switch to OnPostOper for giving +y initially
attilamolnar [Wed, 24 Oct 2012 15:38:39 +0000 (17:38 +0200)]
m_operprefix Remove unused hooks, move module initialization to init()
attilamolnar [Fri, 9 Nov 2012 02:34:37 +0000 (03:34 +0100)]
m_spanningtree SVSNICK needs 3 parameters
attilamolnar [Fri, 9 Nov 2012 02:20:46 +0000 (03:20 +0100)]
m_spanningtree Refuse bogus NICK messages
If the new nick looks like an uid verify that its the correct uid
Adam [Sun, 12 Jun 2011 15:53:38 +0000 (11:53 -0400)]
Make the select() socketengine suck significantly less
attilamolnar [Thu, 8 Nov 2012 18:35:17 +0000 (19:35 +0100)]
m_ssl_gnutls, m_ssl_openssl Set error message for the socket to "Connection closed" whenever the ssl connection is closed
attilamolnar [Thu, 8 Nov 2012 18:30:36 +0000 (19:30 +0100)]
m_ssl_openssl Remove unused variables
Attila Molnar [Fri, 9 Nov 2012 15:38:37 +0000 (07:38 -0800)]
Merge pull request #357 from StevenVanAcker/insp20
unbreak m_hostchange.so
Steven Van Acker [Fri, 9 Nov 2012 14:36:38 +0000 (15:36 +0100)]
wrong order of arguments to Host()
Steven Van Acker [Fri, 9 Nov 2012 14:36:08 +0000 (15:36 +0100)]
use documented "value" attribute instead of undocumented "newhost"
Peter Powell [Wed, 7 Nov 2012 11:05:30 +0000 (11:05 +0000)]
Fix m_ssl_gnutls when using non-standard include/lib paths.
This fixes #315.
Peter Powell [Wed, 7 Nov 2012 09:07:43 +0000 (09:07 +0000)]
Fix ModuleManager failing when:
- LWP::Simple is not installed.
- Crypt::SSLeay or IO::Socket::SSL are not installed.
This fixes #154.
Peter Powell [Wed, 7 Nov 2012 10:33:30 +0000 (10:33 +0000)]
Temporary fix for HASHMAP_DEPRECATED on clang.
Peter Powell [Wed, 7 Nov 2012 10:35:01 +0000 (10:35 +0000)]
Fix typo in m_filter.
newuser1 [Fri, 2 Nov 2012 16:48:35 +0000 (00:48 +0800)]
Fix incorrect substr usage
Adam [Wed, 31 Oct 2012 17:14:13 +0000 (13:14 -0400)]
Don't send quitting users in RPL_NAMREPLY, fixes desyncing clients who join a channel after a user has quit but before they are culled
attilamolnar [Mon, 29 Oct 2012 17:33:07 +0000 (18:33 +0100)]
Fix typo in doc and remove some whitespace
attilamolnar [Mon, 29 Oct 2012 17:04:30 +0000 (18:04 +0100)]
m_opermotd Add support for replacing \u \b etc. with color codes
Fixes #322 reported by @MistrX
attilamolnar [Mon, 29 Oct 2012 16:19:21 +0000 (17:19 +0100)]
Move ServerConfig::ProcessColors() into class InspIRCd, as a helper function
Change signature to accept a file_cache reference so modules can use it easily
attilamolnar [Fri, 12 Oct 2012 21:32:35 +0000 (23:32 +0200)]
m_operlog Add tosnomask config option, to log all oper actions to snomask 'r'
If enabled, the commands can be logged to channels with m_chanlog and also other +s +r opers can see them
Fixes #325 reported by @SeLEct-
attilamolnar [Sun, 28 Oct 2012 13:54:39 +0000 (14:54 +0100)]
Fix warnings in configreader.cpp on FreeBSD
Fixes #348 reported by @netkurd
Adam [Sat, 27 Oct 2012 13:09:33 +0000 (09:09 -0400)]
Issue #346 - fix m_permchannels.cpp and m_xline_db.cpp saving their databases on Windows due to rename() failing if the destination file exists
Peter Powell [Wed, 24 Oct 2012 16:18:54 +0000 (17:18 +0100)]
Fix configure system loading cache file too late.
attilamolnar [Thu, 26 Jul 2012 15:52:13 +0000 (17:52 +0200)]
m_ojoin Fix giving +Y only instead of +Yo when <ojoin:op> is on and the user is already in the channel
attilamolnar [Tue, 23 Oct 2012 20:08:53 +0000 (22:08 +0200)]
m_ircv3 Attach to OnRehash
attilamolnar [Mon, 22 Oct 2012 16:14:37 +0000 (18:14 +0200)]
m_ircv3 Fix away-notify not sending AWAY messages when somebody joins who is away
attilamolnar [Tue, 23 Oct 2012 14:16:34 +0000 (16:16 +0200)]
m_nicklock Fix typo
attilamolnar [Tue, 23 Oct 2012 14:12:32 +0000 (16:12 +0200)]
m_topiclock Prefix ModDesc with $
attilamolnar [Sun, 21 Oct 2012 15:25:17 +0000 (17:25 +0200)]
m_nickflood Fix a case when channels were locked regardless of elapsed time since the last nick change
Fixes #330 reported by @Shawn-Smith
attilamolnar [Sun, 21 Oct 2012 15:06:25 +0000 (17:06 +0200)]
m_nickflood Make code more readable, unset +F when the module is unloaded
See
21c3232b8e0bb41727f2d65a0b2d5304587cf6be and
fae560cddc389b88c9cd34afdccf9035f4d11c5b
attilamolnar [Sun, 21 Oct 2012 14:47:16 +0000 (16:47 +0200)]
Fix /RESTART not closing file descriptors
Fixes issue #262 reported by @MistrX
attilamolnar [Sun, 21 Oct 2012 13:10:44 +0000 (15:10 +0200)]
Make better use of User::GetFullRealHost()
attilamolnar [Wed, 17 Oct 2012 15:13:20 +0000 (17:13 +0200)]
Fix KILL accepting SIDs, get rid of potentially unsafe snprintf and strlcpy
Adrien Bustany [Wed, 10 Oct 2012 07:04:18 +0000 (10:04 +0300)]
m_ldapauth Allow filtering on arbitrary LDAP attributes
This commit implements filtering on LDAP attributes, in a similar way
to what Apache Httpd does with "Require ldap-attribute".
attilamolnar [Fri, 19 Oct 2012 17:41:52 +0000 (19:41 +0200)]
m_filter More cleanup and optimizations
Fix a typo
attilamolnar [Fri, 19 Oct 2012 17:19:46 +0000 (19:19 +0200)]
m_filter Don't move the filter to the beginning of the vector when a match occurs
attilamolnar [Fri, 19 Oct 2012 16:58:30 +0000 (18:58 +0200)]
m_filter Remove redundant flags field from FilterResult
Change FillFlags() to return the character it did not understand, 0 if all ok
attilamolnar [Fri, 19 Oct 2012 16:42:52 +0000 (18:42 +0200)]
m_filter Change exemptfromfilter to be a set
attilamolnar [Fri, 19 Oct 2012 16:20:26 +0000 (18:20 +0200)]
m_filter Use an enum for filter actions instead of a string
attilamolnar [Thu, 13 Sep 2012 18:05:17 +0000 (20:05 +0200)]
m_filter Cleanup, remove empty and useless functions
Peter Powell [Wed, 12 Sep 2012 15:27:59 +0000 (16:27 +0100)]
Fix for #268.
- Move color stripping code to helperfuncs.
- Strip color codes before matching filters.
attilamolnar [Thu, 5 Jul 2012 01:23:23 +0000 (03:23 +0200)]
m_ident Allow the usage of an overriden IsIdent() instead of using a hardcoded version of it
Fix long idents being accepted regardless of Limits.IdentMax
Attila Molnar [Sun, 14 Oct 2012 22:04:43 +0000 (15:04 -0700)]
Merge pull request #340 from ChrisTX/insp20+clangwarningsfix
Resolve two warnings clang complains about
ChrisTX [Sun, 14 Oct 2012 21:58:20 +0000 (23:58 +0200)]
Resolve two warnings clang complains about
No newline at end of file in consolecolors.h
String plus int in snomasks
Attila Molnar [Sun, 14 Oct 2012 20:39:54 +0000 (13:39 -0700)]
Merge pull request #274 from ChrisTX/insp20+gnutlsdeprecation
m_ssl_gnutls: Resolve deprecation warnings properly
Attila Molnar [Sun, 14 Oct 2012 19:40:52 +0000 (12:40 -0700)]
Merge pull request #338 from ChrisTX/insp20+iostream
Replace printf(_c) with iostream
ChrisTX [Sun, 14 Oct 2012 02:03:35 +0000 (04:03 +0200)]
m_ssl_gnutls: Resolve deprecation warnings properly
ChrisTX [Sun, 14 Oct 2012 00:13:49 +0000 (02:13 +0200)]
Replace printf(_c) with iostream
attilamolnar [Sat, 13 Oct 2012 23:38:10 +0000 (01:38 +0200)]
Remove IncreaseOSBuffers() completely
attilamolnar [Fri, 12 Oct 2012 02:31:01 +0000 (04:31 +0200)]
m_chancreate Fix snonotices not being sent when remote users create channels
Fixes #318
attilamolnar [Sat, 13 Oct 2012 14:00:20 +0000 (16:00 +0200)]
Remove no-op call to IncreaseOSBuffers() from BufferedSocket::BeginConnect()
attilamolnar [Fri, 12 Oct 2012 14:29:52 +0000 (16:29 +0200)]
m_ssl_gnutls Cast pointer difference to an unsigned int before displaying it