]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
11 years agoWin32: Rewrite the service wrapper
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

11 years agoInitialize the FakeClient pointer in InspIRCd::InspIRCd()
attilamolnar [Sun, 24 Mar 2013 19:20:19 +0000 (20:20 +0100)]
Initialize the FakeClient pointer in InspIRCd::InspIRCd()

11 years agom_timedbans Notice halfops and above when a timed ban is placed
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

11 years agowin: Made config, modules, data, and log paths configurable.
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.

11 years agoFix infinite loop when all DNS request slots are in use
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

11 years agoAdd support for mandatory tags in included config files
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

11 years agom_spanningtree Fix incoming channel modes being lost for 0-user permanent channels...
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

11 years agom_permchannels Load channels from the config only at module load time and only when...
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

11 years agom_connflood Ignore e-lined users
attilamolnar [Tue, 19 Mar 2013 17:06:22 +0000 (18:06 +0100)]
m_connflood Ignore e-lined users

11 years agoLink win32_memory too inspircd too
Adam [Fri, 15 Mar 2013 20:10:53 +0000 (15:10 -0500)]
Link win32_memory too inspircd too

11 years agom_ssl_openssl Make it clear that a CA file is not mandatory
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

11 years agoModified m_timedbans to behave more like setting mode +b manually.
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.

11 years agoReplace Windows build system and installer with cmake
Adam [Thu, 14 Mar 2013 19:19:41 +0000 (15:19 -0400)]
Replace Windows build system and installer with cmake

11 years agoRemove dead code from DNS
attilamolnar [Mon, 11 Mar 2013 19:52:21 +0000 (20:52 +0100)]
Remove dead code from DNS

11 years agom_connectban Switch to OnSetUserIP hook to handle cgiirc users properly, ignore e...
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

11 years agoFix m_dnsbl not checking cgiirc users when the cgiirc address is elined
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

11 years agoEither store the Resolver in DNS::AddResolverClass() or delete it before returning
attilamolnar [Sat, 2 Mar 2013 20:45:14 +0000 (21:45 +0100)]
Either store the Resolver in DNS::AddResolverClass() or delete it before returning

11 years agoStop user initialization when the user is marked as quitting after OnSetUserIP
attilamolnar [Sat, 2 Mar 2013 20:36:44 +0000 (21:36 +0100)]
Stop user initialization when the user is marked as quitting after OnSetUserIP

11 years agom_dnsbl Fix connecting users timeouting when a dnsbl result is in the dns cache
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

11 years agoMerge pull request #437 from SaberUK/insp20+doxygen-update
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.

11 years agoUpdate 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.

11 years agocmd_lusers Be smart and know how many invisible users are there without iterating...
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

11 years agocmd_lusers Use of size() instead of counting elements
attilamolnar [Tue, 12 Feb 2013 20:21:17 +0000 (21:21 +0100)]
cmd_lusers Use of size() instead of counting elements

11 years agocmd_lusers Refresh max local/global user counters after a user connects
attilamolnar [Tue, 12 Feb 2013 20:19:11 +0000 (21:19 +0100)]
cmd_lusers Refresh max local/global user counters after a user connects

Fixes #423 reported by @RawrDragon

11 years agocmd_lusers Convert to a module
attilamolnar [Tue, 12 Feb 2013 20:07:25 +0000 (21:07 +0100)]
cmd_lusers Convert to a module

11 years agoMerge pull request #430 from SaberUK/insp20+config-tidy
Attila Molnar [Sat, 2 Mar 2013 16:23:22 +0000 (08:23 -0800)]
Merge pull request #430 from SaberUK/insp20+config-tidy

Reorganise configuration files.

11 years agoReorganise configuration files:
Peter Powell [Fri, 1 Mar 2013 03:06:06 +0000 (03:06 +0000)]
Reorganise configuration files:
- Example config files now end with .conf.example.
- Example text files now end with .txt.example.
- Removed 'inspircd' from the name of multiple example files.
- Added missing oper motd example file.

11 years agom_ssl_gnutls Fix null pointer dereference in case gnutls_xxx_get_name() returns NULL
attilamolnar [Sun, 17 Feb 2013 20:59:23 +0000 (21:59 +0100)]
m_ssl_gnutls Fix null pointer dereference in case gnutls_xxx_get_name() returns NULL

11 years agoFix multiple escape bugs in m_httpd_stats.
Peter Powell [Mon, 11 Feb 2013 10:25:57 +0000 (10:25 +0000)]
Fix multiple escape bugs in m_httpd_stats.

11 years agocmd_invite Send invite announcements to halfops and higher when <security:announceinv...
attilamolnar [Mon, 11 Feb 2013 16:52:21 +0000 (17:52 +0100)]
cmd_invite Send invite announcements to halfops and higher when <security:announceinvites> is 'dynamic' regardless of the channel being +i or not

Clarify what the various options mean in the doc

Fixes #418 reported by @RawrDragon

11 years agocmd_invite Correct error message when the user has no privs to invite and no halfop...
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

11 years agoFix exactly <limits:maxchan> long channel names being truncated
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

11 years agoMerge pull request #416 from SaberUK/insp20+clang42-warnings
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.

11 years agoRemove 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.

11 years agoMerge pull request #414 from SaberUK/insp20+hashmap
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.

11 years agoMerge pull request #413 from SaberUK/insp20+httpd
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.

11 years agoUse the preprocessor to detect whether hash_map is available.
Peter Powell [Fri, 4 Jan 2013 18:22:29 +0000 (18:22 +0000)]
Use the preprocessor to detect whether hash_map is available.

11 years agoUse a better server name in m_httpd.
Peter Powell [Fri, 4 Jan 2013 15:26:49 +0000 (15:26 +0000)]
Use a better server name in m_httpd.

11 years agom_ssl_gnutls Fix build with GnuTLS 1.x
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

11 years agom_chanhistory Fix durations containing 'S' being rejected
attilamolnar [Sun, 27 Jan 2013 16:22:18 +0000 (17:22 +0100)]
m_chanhistory Fix durations containing 'S' being rejected

11 years agoUse GNU install on Solaris.
Peter Powell [Fri, 25 Jan 2013 22:56:39 +0000 (22:56 +0000)]
Use GNU install on Solaris.

11 years agoMerge pull request #407 from SaberUK/insp20+fix-openssl-detection
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.

11 years agoFix 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.

11 years agoMerge pull request #403 from SaberUK/insp20+wextra-fixes
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".

11 years agoFix 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".

11 years agom_spanningtree Fix rare desync when a KILL crosses a message that has the killed...
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

11 years agom_maphide Ignore unregistered users
attilamolnar [Sun, 13 Jan 2013 22:33:20 +0000 (23:33 +0100)]
m_maphide Ignore unregistered users

Fixes #400 reported by @SaberUK

11 years agoMerge pull request #397 from Robby-/insp20+cmode_b-limit
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

11 years agocmode_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.

11 years agom_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPreNotice
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

11 years agom_banredirect Deny the join to the redirect channel if it has a redirecting ban set...
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

11 years agom_banredirect Remove unnecessary hooks, cleanup
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

11 years agoReplace a GNUmake idiom with the portable equivalent.
Peter Powell [Sun, 23 Dec 2012 18:40:53 +0000 (18:40 +0000)]
Replace a GNUmake idiom with the portable equivalent.

11 years agoInclude <list> in base.h to prevent build errors on OpenBSD.
Peter Powell [Thu, 20 Dec 2012 00:45:59 +0000 (00:45 +0000)]
Include <list> in base.h to prevent build errors on OpenBSD.

11 years agoFix the poll socket engine on BSD's other than FreeBSD.
Peter Powell [Thu, 20 Dec 2012 00:34:38 +0000 (00:34 +0000)]
Fix the poll socket engine on BSD's other than FreeBSD.

11 years agoOpenBSD does not have KERN_MAXFILESPERPROC.
Peter Powell [Thu, 20 Dec 2012 00:07:32 +0000 (00:07 +0000)]
OpenBSD does not have KERN_MAXFILESPERPROC.

11 years agom_ldapoper Fix typo spotted by @lordsith49
attilamolnar [Tue, 25 Dec 2012 17:26:47 +0000 (18:26 +0100)]
m_ldapoper Fix typo spotted by @lordsith49

Fixes #392

11 years agoFix errors in socketengine_ports so it compiles on Solaris
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

11 years agoFix property list arguments.
Peter Powell [Mon, 17 Dec 2012 04:35:32 +0000 (04:35 +0000)]
Fix property list arguments.

11 years agoFixed m_ssl_gnutls build on Windows; gnutls.h uses ssize_t which is defined in gcrypt.h
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

11 years agoRelease 2.0.10
attilamolnar [Sun, 16 Dec 2012 15:30:58 +0000 (16:30 +0100)]
Release 2.0.10

11 years agom_callerid Fix memory leak in CallerIDExtInfo::free()
attilamolnar [Sun, 16 Dec 2012 15:08:39 +0000 (16:08 +0100)]
m_callerid Fix memory leak in CallerIDExtInfo::free()

11 years agoAdd a flag to Command that controls whether an empty last parameter is allowed or not
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

11 years agom_ident Reject invalid and error replies
attilamolnar [Sat, 15 Dec 2012 18:41:58 +0000 (19:41 +0100)]
m_ident Reject invalid and error replies

11 years agoAdd IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a target...
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

11 years agoRemove ServerLimits::Finalise(), it's completely wrong
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()

11 years agoFix unsafe iteration in DelMode() when unloading m_permchannels
attilamolnar [Sat, 8 Dec 2012 15:14:19 +0000 (16:14 +0100)]
Fix unsafe iteration in DelMode() when unloading m_permchannels

11 years agoFix #380 on BSD make.
Peter Powell [Fri, 7 Dec 2012 17:26:56 +0000 (17:26 +0000)]
Fix #380 on BSD make.

11 years agoMerge pull request #380 from SaberUK/insp20+fix-clang-warning
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.

11 years agoFix invalid argument warnings on clang.
Peter Powell [Fri, 7 Dec 2012 03:32:50 +0000 (03:32 +0000)]
Fix invalid argument warnings on clang.

11 years agom_svshold Fix crash when called with 2 params, only triggerable by u-lines
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

11 years agom_cban, m_rline, m_shun Don't broadcast when user is a local user
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

11 years agoChange a few signed counter variables to unsigned so they roll over later
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

11 years agoFix expired xlines being treated as live ones in XLineManager::AddLine()
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

11 years agoUnbreak m_geoip
attilamolnar [Tue, 4 Dec 2012 15:21:44 +0000 (16:21 +0100)]
Unbreak m_geoip

11 years agoFix thread handle leak in StartServiceThread()
attilamolnar [Mon, 3 Dec 2012 19:53:18 +0000 (20:53 +0100)]
Fix thread handle leak in StartServiceThread()

11 years agoFix broken RetrieveLastError()
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

11 years agoFix typos in ebdaf368e137fc933e648ee88a08a4f83e796f87
attilamolnar [Mon, 3 Dec 2012 17:11:18 +0000 (18:11 +0100)]
Fix typos in ebdaf368e137fc933e648ee88a08a4f83e796f87

11 years agoProperly shut down stdin
attilamolnar [Sun, 2 Dec 2012 23:34:59 +0000 (00:34 +0100)]
Properly shut down stdin

Replace hardcoded ints

11 years agom_remove Fix potential desync caused by committing the PART before getting acknowledg...
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

11 years agoFix DLLManager leak when an exception is thrown in init()
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

11 years agoThrow an exception when attempting to register an extension with a name that already...
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

11 years agoRegister a few extensions that weren't registered
attilamolnar [Sun, 2 Dec 2012 18:40:26 +0000 (19:40 +0100)]
Register a few extensions that weren't registered

11 years agoRegister all commands, modes and extensions using AddService()
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

11 years agoDynamically determine the size of the eventlist[] passed to Attach()
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

11 years agoAttach to events and register services in init()
attilamolnar [Sat, 13 Oct 2012 01:12:29 +0000 (03:12 +0200)]
Attach to events and register services in init()

11 years agoMerge pull request #376 from SaberUK/insp20+fix-clean
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.

11 years agoFix 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.

11 years agoMake LocalUserList an std::list
attilamolnar [Tue, 20 Nov 2012 23:53:57 +0000 (00:53 +0100)]
Make LocalUserList an std::list

11 years agoAdd a typedef for LocalUserList
attilamolnar [Tue, 20 Nov 2012 23:15:13 +0000 (00:15 +0100)]
Add a typedef for LocalUserList

11 years agom_cgiirc Fix wrong announcement when the host in WEBIRC is too long
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

11 years agom_cgiirc Don't apply resolved host or send notifications when the user is quitting...
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)

11 years agom_cgiirc Don't resolve IPs when <performance:nouserdns> is true
attilamolnar [Thu, 29 Nov 2012 17:53:54 +0000 (18:53 +0100)]
m_cgiirc Don't resolve IPs when <performance:nouserdns> is true

11 years agom_cgiirc De-duplicate code, recheck elines after ip/host changes
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()

11 years agom_cgiirc Remove dead code, warn when a <cgihost> block has an invalid type value...
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

11 years agom_dnsbl Add usednsbl option to connect classes
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

11 years agoReorder local user initialization steps
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

11 years agocmd_rehash, m_spanningtree Fix REHASH messages duplicating at each hop
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

11 years agoMerge pull request #374 from rburchell/ldapauth_vhosts
Attila Molnar [Thu, 29 Nov 2012 14:47:32 +0000 (06:47 -0800)]
Merge pull request #374 from rburchell/ldapauth_vhosts

Ldapauth vhosts

11 years agoldapauth: register both extensions
Robin Burchell [Thu, 29 Nov 2012 09:06:22 +0000 (10:06 +0100)]
ldapauth: register both extensions