11003 Commits

Author SHA1 Message Date
Attila Molnar
6dd61235fc Merge pull request #376 from SaberUK/insp20+fix-clean
Fix the list of files to be removed by make.
2012-12-02 10:20:03 -08:00
Peter Powell
66652af628 Fix the list of files to be removed by make. 2012-12-02 17:58:13 +00:00
attilamolnar
74b05d5500 Make LocalUserList an std::list 2012-11-29 23:41:22 +01:00
attilamolnar
a589577b68 Add a typedef for LocalUserList 2012-11-29 23:41:22 +01:00
attilamolnar
83db3dc06a m_cgiirc Fix wrong announcement when the host in WEBIRC is too long 2012-11-29 21:12:13 +01:00
attilamolnar
d53f0956ab m_cgiirc Don't apply resolved host or send notifications when the user is quitting (matched a line) 2012-11-29 20:26:17 +01:00
attilamolnar
129dfe60ae m_cgiirc Don't resolve IPs when <performance:nouserdns> is true 2012-11-29 20:26:17 +01:00
attilamolnar
6e55cd2003 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()
2012-11-29 20:26:17 +01:00
attilamolnar
9eb655dbdd m_cgiirc Remove dead code, warn when a <cgihost> block has an invalid type value, misc. cleanup 2012-11-29 20:26:17 +01:00
attilamolnar
f1a122b4ee m_dnsbl Add usednsbl option to connect classes
Don't touch users in classes where it's off
2012-11-29 20:26:00 +01:00
attilamolnar
20ea635c9f 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
2012-11-29 20:26:00 +01:00
attilamolnar
b4034e2231 cmd_rehash, m_spanningtree Fix REHASH messages duplicating at each hop
Fixes #375 reported by @JDowny
2012-11-29 16:25:36 +01:00
Attila Molnar
53f027a290 Merge pull request #374 from rburchell/ldapauth_vhosts
Ldapauth vhosts
2012-11-29 06:47:32 -08:00
Robin Burchell
aebe6cfd64 ldapauth: register both extensions 2012-11-29 10:07:07 +01:00
Robin Burchell
50ea223063 ldapauth: RAII returned ldap message.
This ensures it is always freed, and coincidentally fixes freeing in the case of
LDAP errors.
2012-11-29 10:07:05 +01:00
Robin Burchell
1813369ade ldapauth: fix memory leak
ldap_get_dn() results need to be freed. Use a RAII wrapper to do this.

Original code by Attila Molnar
2012-11-29 10:07:05 +01:00
Robin Burchell
e031d19418 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.
2012-11-29 10:07:01 +01:00
Robin Burchell
2fb2f639ad ldapauth: Add missing verbose logging to required attributes. 2012-11-29 10:06:58 +01:00
Robin Burchell
83a89fc3f6 ldapauth: Rework required attributes code to use only one exit path.
This makes the upcoming patch to add optional virtual host support cleaner.
2012-11-29 10:06:55 +01:00
attilamolnar
2d2e0469b8 Change empty string assignments to .clear() or remove them entirely
Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
2012-11-28 19:28:52 +01:00
attilamolnar
790f8c3584 Have FindUUID(const char*) call FindUUID(const std::string&), not the other way around 2012-11-28 19:28:51 +01:00
attilamolnar
772dad05a4 m_spanningtree Remove redundant params.size() checks
TreeSocket::ProcessConnectedLine() and CommandParser::CallHandler() only call the handler when there are enough parameters
2012-11-28 19:28:36 +01:00
Peter Powell
56cde817e0 Fix GnuTLS certificate generation on OS X. 2012-11-28 17:10:22 +01:00
Peter Powell
48c73ade31 Silence OpenSSL deprecation warnings on OS X. 2012-11-28 17:10:13 +01:00
attilamolnar
abd2ac5ca8 m_noctcp Make extban 'C' work as intended 2012-11-24 04:13:24 +01:00
attilamolnar
cbb06a27e9 m_check, m_namesx, m_timedbans Minor cleanup 2012-11-24 04:05:06 +01:00
attilamolnar
8f55577ce3 Simplify UserManager::AddLocalClone()/AddGlobalClone() 2012-11-24 03:58:48 +01:00
attilamolnar
66267bab3e Remove TAXONOMY from opers.conf.example, it doesn't exist in 2.0
Fixes #369 reported by @DjGolia
2012-11-23 19:52:24 +01:00
attilamolnar
851b9aa26b 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
2012-11-19 18:32:46 +01:00
attilamolnar
77e325c3e0 m_nokicks Remove u-line check, OnUserPreKick doesn't run in that case 2012-11-19 18:32:45 +01:00
attilamolnar
d31e6e1f3e 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()
2012-11-19 18:32:45 +01:00
attilamolnar
b5159b7a92 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
2012-11-19 18:32:44 +01:00
attilamolnar
7900ad9222 m_securelist Update description 2012-11-19 18:32:43 +01:00
attilamolnar
22f841445a 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()
2012-11-19 18:32:43 +01:00
attilamolnar
6c67546af6 ServerConfig::ServerName is a std::string, don't call .c_str() on it when passing it to Channel::WriteChannelWithServ, etc. 2012-11-19 18:32:42 +01:00
attilamolnar
7eab4fd473 m_remove, m_services_account Don't check whether nicks are u-lined, checking the server is enough 2012-11-19 18:32:41 +01:00
attilamolnar
ba5c0db795 Change empty string assignments to .clear() or remove them entirely 2012-11-19 18:32:41 +01:00
attilamolnar
2de13e15c2 m_globalload Fix wrong error message being sent when the module given to /gunloadmodule is not found 2012-11-19 18:32:40 +01:00
attilamolnar
5c20fd57ec Remove usage of deprecated CallCommandHandler() and IsValidModuleCommand() 2012-11-19 18:32:39 +01:00
attilamolnar
81d7a5b538 Remove calls to ListModeBase::OnCleanup (deprecated, empty function) 2012-11-19 18:32:39 +01:00
Peter Powell
357a38d160 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.
2012-11-19 01:46:25 +01:00
Attila Molnar
a23dc3de45 Merge pull request #365 from StevenVanAcker/unhook-uid
unhook --uid from --system in configure script
2012-11-18 14:05:45 -08:00
Attila Molnar
562380da4d Merge pull request #366 from StevenVanAcker/autoconnect-reminder
added warning that autoconnect is now a separate tag
2012-11-18 13:59:21 -08:00
Steven Van Acker
8eb4534fa9 added warning that autoconnect is now a separate tag 2012-11-15 19:46:24 +01:00
Steven Van Acker
98b4025af9 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
2012-11-15 17:54:41 +01:00
attilamolnar
a4db7bf9af Remove usage of the deprecated ConfigReader 2012-11-12 21:48:42 +01:00
attilamolnar
62149fcd86 m_operprefix Enhance compatibility with m_hideoper using a ModeWatcher
Prioritize after m_opermodes, so we know when it sets +H on somebody
2012-11-12 21:48:42 +01:00
attilamolnar
1ca354be81 m_operprefix Switch to OnUserPreJoin hook to give +y to joining opers, switch to OnPostOper for giving +y initially 2012-11-12 21:33:44 +01:00
attilamolnar
fda5e8d055 m_operprefix Remove unused hooks, move module initialization to init() 2012-11-12 21:33:44 +01:00
attilamolnar
4a57d129fb m_spanningtree SVSNICK needs 3 parameters 2012-11-09 17:23:10 +01:00