]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
10 years agom_spanningtree Do pointer comparison before deleting one of the pointers in TreeSocke...
Attila Molnar [Sun, 2 Mar 2014 16:04:51 +0000 (17:04 +0100)]
m_spanningtree Do pointer comparison before deleting one of the pointers in TreeSocket::Squit()

While the previous code worked fine in practice, it was incorrect in theory

10 years agom_spanningtree Don't send snotices to servers about remote servers splitting
Attila Molnar [Sun, 2 Mar 2014 16:00:12 +0000 (17:00 +0100)]
m_spanningtree Don't send snotices to servers about remote servers splitting

The snotice is sent to opers when the SQUIT is processed by their server

10 years agoFix NULL dereference on rehash when there is a fatal error in the configuration of...
Attila Molnar [Sat, 1 Mar 2014 12:04:10 +0000 (13:04 +0100)]
Fix NULL dereference on rehash when there is a fatal error in the configuration of connect classes

Fixes issue #780 reported by @JDowny

10 years agoMerge pull request #784 from ShutterQuick/patch-1
Attila Molnar [Fri, 28 Feb 2014 16:16:29 +0000 (17:16 +0100)]
Merge pull request #784 from ShutterQuick/patch-1

Fix build problem on Solaris

10 years agoMerge pull request #783 from SaberUK/insp20+solaris-hates-posix
Attila Molnar [Fri, 28 Feb 2014 15:22:41 +0000 (16:22 +0100)]
Merge pull request #783 from SaberUK/insp20+solaris-hates-posix

Fix Solaris not being able to find modules without pkg-config.

10 years agoFix build problem on Solaris
ShutterQuick [Thu, 27 Feb 2014 17:45:16 +0000 (09:45 -0800)]
Fix build problem on Solaris

-rpath only takes one dash
Fixes the Solaris build \o/

'''
<fraggeln> SaberUK: http://m.theo.nu/jenkins/job/InspIRCd-2.0/435/label=solaris/console <--
<fraggeln> do you have any clue on why?
<@Shutter> Hmm. Where did that extra - come from.
<fraggeln> Shutter: no idea :)
[...]
<fraggeln> Shutter: sub make_rpath($;$) <-- in make/utilities.pm
<fraggeln> thats where that extra - is'''

10 years agoFix Solaris not being able to find modules without pkg-config.
Peter Powell [Thu, 27 Feb 2014 17:05:08 +0000 (17:05 +0000)]
Fix Solaris not being able to find modules without pkg-config.

10 years agoFix /who on opers incorrectly showing +i opers to
Adam [Thu, 20 Feb 2014 18:03:31 +0000 (13:03 -0500)]
Fix /who on opers incorrectly showing +i opers to
users without the privilege to see them, introduced in
b328aad53b044bd9cf9720dfed216b0ee61c8e31

10 years agoMerge pull request #772 from SaberUK/insp20+llvm34
Attila Molnar [Tue, 18 Feb 2014 23:15:57 +0000 (00:15 +0100)]
Merge pull request #772 from SaberUK/insp20+llvm34

Fix various problems detected by Clang 3.4.

10 years agosocketengine_select Reset the values in the timeval struct on *nix before select()
Attila Molnar [Thu, 13 Feb 2014 13:10:01 +0000 (14:10 +0100)]
socketengine_select Reset the values in the timeval struct on *nix before select()

10 years agoFix various problems detected by Clang 3.4.
Peter Powell [Mon, 10 Feb 2014 20:08:56 +0000 (20:08 +0000)]
Fix various problems detected by Clang 3.4.

- cidr.cpp: remove inverted_bits; unused since 9fad3ecb9215a0034bf407f192926b04cb5efaed.
- cmd_stats.cpp: remove needless inversion and comparison to 0.
- inspircd.cpp: remove needless comparison to 0.
- socket.cpp: remove all_zero; unused since 03a1bf15b1da7643b237c22db1a478916a976ccf.

10 years agosocketengine_epoll Initialize CurrentSetSize (only used by m_httpd_stats)
Attila Molnar [Wed, 5 Feb 2014 17:02:01 +0000 (18:02 +0100)]
socketengine_epoll Initialize CurrentSetSize (only used by m_httpd_stats)

10 years agoFix new file descriptor debug log message in socketengine_poll to show the correct...
Adam [Tue, 4 Feb 2014 21:11:43 +0000 (16:11 -0500)]
Fix new file descriptor debug log message in socketengine_poll to show the correct events

10 years agom_banredirect Fix typo in a message (transfered -> transferred)
Attila Molnar [Mon, 3 Feb 2014 09:08:05 +0000 (10:08 +0100)]
m_banredirect Fix typo in a message (transfered -> transferred)

Fixes issue #757 reported by @guikcd

10 years agom_ssl_openssl Fix memory leaks on /rehash ssl, unload and in VerifyCertificate()
Attila Molnar [Sun, 26 Jan 2014 15:39:21 +0000 (16:39 +0100)]
m_ssl_openssl Fix memory leaks on /rehash ssl, unload and in VerifyCertificate()

10 years agoSet a session id on our server ssl context in m_ssl_openssl. It is required for some...
Adam [Fri, 24 Jan 2014 23:11:49 +0000 (18:11 -0500)]
Set a session id on our server ssl context in m_ssl_openssl. It is required for some clients which try to restore SSL sessions.

10 years agoRelease 2.0.15
Attila Molnar [Tue, 21 Jan 2014 13:13:25 +0000 (14:13 +0100)]
Release 2.0.15

10 years agoBump API version because of 3f4d54eb031f1cd6b016dfe1f768ed86303e3856
Attila Molnar [Tue, 21 Jan 2014 13:13:02 +0000 (14:13 +0100)]
Bump API version because of 3f4d54eb031f1cd6b016dfe1f768ed86303e3856

10 years agom_httpd_stats Be more conservative when escaping data
Attila Molnar [Tue, 21 Jan 2014 13:10:01 +0000 (14:10 +0100)]
m_httpd_stats Be more conservative when escaping data

Fix clang warning

10 years agoIncrease the penalty for a few core commands
Attila Molnar [Tue, 21 Jan 2014 13:04:45 +0000 (14:04 +0100)]
Increase the penalty for a few core commands

10 years agom_joinflood Unset the mode on unload
Attila Molnar [Mon, 20 Jan 2014 23:44:41 +0000 (00:44 +0100)]
m_joinflood Unset the mode on unload

10 years agoFix some logically dead code which was found by Coverity.
Peter Powell [Wed, 11 Dec 2013 05:05:36 +0000 (05:05 +0000)]
Fix some logically dead code which was found by Coverity.

10 years agom_svshold Add config option to hide snotices
Attila Molnar [Mon, 20 Jan 2014 16:05:01 +0000 (17:05 +0100)]
m_svshold Add config option to hide snotices

10 years agom_httpd Add timeout option; remove timed out connections
Attila Molnar [Mon, 20 Jan 2014 15:57:30 +0000 (16:57 +0100)]
m_httpd Add timeout option; remove timed out connections

10 years agoUpdate example configs/helpop
Attila Molnar [Mon, 20 Jan 2014 15:48:20 +0000 (16:48 +0100)]
Update example configs/helpop

10 years agoUse standard example addresses in configs
Mantas Mikulėnas [Thu, 2 Jan 2014 14:52:51 +0000 (16:52 +0200)]
Use standard example addresses in configs

`2001:db8::/32` is the [standard][1] IPv6 example address range, using
it also makes it clear when the user has just copy-pasted the example
config and didn't actually whitelist 6BONE for some strange reason.

Similarly, there are example addresses for [IPv4][2] and [DNS][3].

[1]: http://tools.ietf.org/html/rfc3849
[2]: http://tools.ietf.org/html/rfc5737
[3]: http://tools.ietf.org/html/rfc2606

10 years agom_services_account Add workaround for wrong host being displayed in numeric when...
Attila Molnar [Mon, 20 Jan 2014 15:40:01 +0000 (16:40 +0100)]
m_services_account Add workaround for wrong host being displayed in numeric when cgiirc users log in using SASL

10 years agom_dnsbl Don't send snotice when the {G|K|Z}line already exists
Attila Molnar [Mon, 20 Jan 2014 15:30:39 +0000 (16:30 +0100)]
m_dnsbl Don't send snotice when the {G|K|Z}line already exists

Fixes issue #717 reported by @Robby-

10 years agom_joinflood Fix remote joins affecting local joinflood state when the channel is...
Attila Molnar [Sun, 19 Jan 2014 16:04:11 +0000 (17:04 +0100)]
m_joinflood Fix remote joins affecting local joinflood state when the channel is locked

Fixes issue #694 reported by @TurkDesk

10 years agoUse FindNickOnly() in a few more places if a local user is performing an action to...
Attila Molnar [Sun, 19 Jan 2014 15:48:41 +0000 (16:48 +0100)]
Use FindNickOnly() in a few more places if a local user is performing an action to prevent UID walking

10 years agom_dccallow Increase penalty for /DCCALLOW help
Attila Molnar [Sun, 19 Jan 2014 15:42:10 +0000 (16:42 +0100)]
m_dccallow Increase penalty for /DCCALLOW help

10 years agom_alias Fix out of bounds string access that happened with certain replace strings
Attila Molnar [Sun, 19 Jan 2014 15:39:46 +0000 (16:39 +0100)]
m_alias Fix out of bounds string access that happened with certain replace strings

10 years agoFix OOB error in sa2cidr()
Daniel Vassdal [Mon, 25 Nov 2013 00:46:04 +0000 (16:46 -0800)]
Fix OOB error in sa2cidr()

10 years agoMerge pull request #732 from grawity/saslfix
Attila Molnar [Thu, 16 Jan 2014 18:26:16 +0000 (10:26 -0800)]
Merge pull request #732 from grawity/saslfix

m_sasl: properly handle bad-mechanism failures

10 years agom_sajoin Send global snotice when the join happens
Attila Molnar [Tue, 14 Jan 2014 14:01:44 +0000 (15:01 +0100)]
m_sajoin Send global snotice when the join happens

Remove "sent remote SAJOIN" local snotice

Fixes issue #382 reported by @JDowny

10 years agom_mlock Only deny the mlocked mode from being changed instead of denying the entire...
Attila Molnar [Mon, 13 Jan 2014 13:01:16 +0000 (14:01 +0100)]
m_mlock Only deny the mlocked mode from being changed instead of denying the entire mode change if it contains a single mlocked mode

Fixes issue #615 reported by @BlacklightShining

10 years agoSupport SASL messages other than 'C' and 'D'
Mantas Mikulėnas [Sat, 11 Jan 2014 21:42:34 +0000 (23:42 +0200)]
Support SASL messages other than 'C' and 'D'

10 years agoHandle SASL failures during SASL_INIT (wrong mechanism, etc.)
Mantas Mikulėnas [Sat, 11 Jan 2014 21:41:16 +0000 (23:41 +0200)]
Handle SASL failures during SASL_INIT (wrong mechanism, etc.)

10 years agoFix possible use of invalid iterator on module unload
Attila Molnar [Sun, 5 Jan 2014 12:47:28 +0000 (13:47 +0100)]
Fix possible use of invalid iterator on module unload

When a module quits a user or destroys a channel in OnCleanup() the object is no longer in the container being iterated by the time OnCleanup() returns

10 years agoShow +i users on a channel to opers having the channels/auspex priv who do /NAMES...
Attila Molnar [Sat, 4 Jan 2014 12:02:39 +0000 (13:02 +0100)]
Show +i users on a channel to opers having the channels/auspex priv who do /NAMES from outside of the chan

Discovered by @Cronus89

10 years agoMerge pull request #714 from SaberUK/insp20+fix-helpop
Attila Molnar [Sat, 28 Dec 2013 00:13:00 +0000 (16:13 -0800)]
Merge pull request #714 from SaberUK/insp20+fix-helpop

[2.0] Fix the HELPOP database being destroyed when a rehash fails.

10 years agoFix the HELPOP database being destroyed when a rehash fails.
Peter Powell [Thu, 26 Dec 2013 11:28:22 +0000 (11:28 +0000)]
Fix the HELPOP database being destroyed when a rehash fails.

10 years agoAllow ranges beginning with 0 in m_channames
Daniel Vassdal [Sat, 21 Dec 2013 03:10:48 +0000 (19:10 -0800)]
Allow ranges beginning with 0 in m_channames

10 years agom_spanningtree Fix nick TS desync on SVSNICK
Attila Molnar [Sun, 15 Dec 2013 12:10:33 +0000 (13:10 +0100)]
m_spanningtree Fix nick TS desync on SVSNICK

Don't accept invalid timestamps

10 years agoFix m_override refusing to override modes if the user holds halfop or higher in the...
Daniel Vassdal [Thu, 12 Dec 2013 21:39:10 +0000 (13:39 -0800)]
Fix m_override refusing to override modes if the user holds halfop or higher in the channel

10 years agoFix ACCEPT propagation bug when it got a nick prefixed with +
Daniel Vassdal [Sat, 7 Dec 2013 20:44:10 +0000 (12:44 -0800)]
Fix ACCEPT propagation bug when it got a nick prefixed with +

Fixes #696
Does not apply to 2.2 due to Attila's rewrite of the module

10 years agoMerge pull request #693 from SaberUK/insp20+modulemanager-bugs
Attila Molnar [Fri, 29 Nov 2013 21:14:45 +0000 (13:14 -0800)]
Merge pull request #693 from SaberUK/insp20+modulemanager-bugs

[2.0] Fix various problems with ModuleManager.

10 years agoFix various problems with ModuleManager.
Peter Powell [Fri, 29 Nov 2013 20:23:57 +0000 (20:23 +0000)]
Fix various problems with ModuleManager.

- Fix downloading the module list on very new versions of Perl.
- Fix an off by one error caused by array sizing starting at -1
  instead of 0 like in every single other language (!!).
- Fix vague error messages when LWP encounters an error.
- Fix LWP::Simple being used before we have checked whether it is
  available.

10 years agoFix remote /MODULES bug
Daniel Vassdal [Tue, 12 Nov 2013 16:28:40 +0000 (08:28 -0800)]
Fix remote /MODULES bug

10 years agoUse case insensitive comparison for server names for (auto)connects, issue #662
Adam [Sat, 9 Nov 2013 11:52:38 +0000 (06:52 -0500)]
Use case insensitive comparison for server names for (auto)connects, issue #662

10 years agoFix parsing ADDLINE with expiration or creation dates past ~2038 probably
Adam [Sat, 9 Nov 2013 11:43:49 +0000 (06:43 -0500)]
Fix parsing ADDLINE with expiration or creation dates past ~2038 probably

10 years agoFix issue #657, fix sending FNAME with spaces
Adam [Sat, 9 Nov 2013 11:23:05 +0000 (06:23 -0500)]
Fix issue #657, fix sending FNAME with spaces

10 years agoFix m_silence looking for maxentries in <showwhois> instead of <silence>.
Peter Powell [Wed, 23 Oct 2013 22:46:08 +0000 (23:46 +0100)]
Fix m_silence looking for maxentries in <showwhois> instead of <silence>.

Fixes issue #644.

10 years agoMerge pull request #638 from SaberUK/insp20+runas-fix
Attila Molnar [Thu, 26 Sep 2013 15:01:15 +0000 (08:01 -0700)]
Merge pull request #638 from SaberUK/insp20+runas-fix

Improve error reporting for <security:runas{user,group}>.

10 years agoImprove error reporting for <security:runas{user,group}>.
Peter Powell [Tue, 24 Sep 2013 21:36:28 +0000 (22:36 +0100)]
Improve error reporting for <security:runas{user,group}>.

10 years agoWork around STB_GNU_UNIQUE symbols not allowing module unmap
attilamolnar [Sun, 15 Sep 2013 14:54:34 +0000 (16:54 +0200)]
Work around STB_GNU_UNIQUE symbols not allowing module unmap

10 years agoFix ConvToStr(char)
attilamolnar [Sat, 14 Sep 2013 13:23:45 +0000 (15:23 +0200)]
Fix ConvToStr(char)

10 years agoFix a shadow warning created by ConfigTag::create
ChrisTX [Mon, 9 Sep 2013 21:50:21 +0000 (23:50 +0200)]
Fix a shadow warning created by ConfigTag::create

10 years agom_httpd Close all open http sockets on unload
attilamolnar [Mon, 9 Sep 2013 11:30:31 +0000 (13:30 +0200)]
m_httpd Close all open http sockets on unload

10 years agom_showwhois Require 2 parameters for WHOISNOTICE
attilamolnar [Mon, 9 Sep 2013 11:22:51 +0000 (13:22 +0200)]
m_showwhois Require 2 parameters for WHOISNOTICE

10 years agoFix a crash when running as systemd service
ChrisTX [Wed, 4 Sep 2013 12:16:48 +0000 (14:16 +0200)]
Fix a crash when running as systemd service

- Fix a NULL dereference if a signal is raised in the constructor of the
class InspIRCd
- Resolve the parent's process exit code being SIGTERM=15 and typically not
EXIT_SUCCESS thus

A combination of the two caused crashes when running as systemd unit.

10 years agoMerge pull request #623 from ChrisTX/insp20+compilerfixes
Attila Molnar [Wed, 4 Sep 2013 13:42:46 +0000 (06:42 -0700)]
Merge pull request #623 from ChrisTX/insp20+compilerfixes

Improve support for rarely used compilers, EKOPath in this case.

10 years agom_spanningtree Fix timestamp in AWAY
attilamolnar [Sat, 31 Aug 2013 10:00:55 +0000 (12:00 +0200)]
m_spanningtree Fix timestamp in AWAY

10 years agoImprove support for rarely used compilers, EKOPath in this case.
ChrisTX [Fri, 30 Aug 2013 23:17:07 +0000 (01:17 +0200)]
Improve support for rarely used compilers, EKOPath in this case.

10 years agoDon't CoreExport reference, fixes m_dnsbl on Windows
attilamolnar [Fri, 30 Aug 2013 10:10:01 +0000 (12:10 +0200)]
Don't CoreExport reference, fixes m_dnsbl on Windows

The explicit instantiations of reference are now useless; remove

10 years agoRelease 2.0.14
attilamolnar [Wed, 28 Aug 2013 17:29:50 +0000 (19:29 +0200)]
Release 2.0.14

10 years agom_permchannels Fix empty topic setby
attilamolnar [Wed, 28 Aug 2013 17:27:14 +0000 (19:27 +0200)]
m_permchannels Fix empty topic setby

10 years agoUpdate COPYING file with new FSF address.
Christopher 'm4z' Holm [Sun, 25 Aug 2013 17:42:26 +0000 (19:42 +0200)]
Update COPYING file with new FSF address.

This should make rpmlint stop complaining about the incorrect FSF
address. All changes taken from:
    http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

10 years agoFix fd and minor memory leak in threadengine_pthread on unload of m_mysql
attilamolnar [Sun, 9 Jun 2013 12:11:41 +0000 (14:11 +0200)]
Fix fd and minor memory leak in threadengine_pthread on unload of m_mysql

10 years agoFix crash caused by passing a large integer to ctime()
attilamolnar [Tue, 27 Aug 2013 16:33:32 +0000 (18:33 +0200)]
Fix crash caused by passing a large integer to ctime()

In addition to verifying the return value of localtime(), correct tm_year if it is out of bounds

Reported by @JDowny

10 years agom_permchannels Add the ability to save listmodes
attilamolnar [Tue, 9 Jul 2013 18:21:33 +0000 (20:21 +0200)]
m_permchannels Add the ability to save listmodes

10 years agom_permchannels Save channel TS, topic set time and set by information
attilamolnar [Tue, 9 Jul 2013 18:01:03 +0000 (20:01 +0200)]
m_permchannels Save channel TS, topic set time and set by information

When loading, ignore and log channels with a name longer than Limits.MaxChan

10 years agom_permchannels Construct the final line that will be saved in a std::string in WriteD...
attilamolnar [Tue, 9 Jul 2013 17:49:10 +0000 (19:49 +0200)]
m_permchannels Construct the final line that will be saved in a std::string in WriteDatabase()

10 years agoUpdate example configs, README.md and more
attilamolnar [Tue, 27 Aug 2013 16:30:59 +0000 (18:30 +0200)]
Update example configs, README.md and more

- Fix typos, remove misleading information, rephrase a few sentences
- Add info about hmac-<hash> hash types
- Remove <performance:maxwho> (the code which used this was removed in 96e4434 - @SaberUK)
- Change inspircd.github.org to inspircd.org

10 years agom_spanningtree When an IOHook goes away close all pending connections that use it
attilamolnar [Wed, 21 Aug 2013 14:38:33 +0000 (16:38 +0200)]
m_spanningtree When an IOHook goes away close all pending connections that use it

10 years agom_dnsbl Fix possible use-after-free after a rehash
attilamolnar [Wed, 21 Aug 2013 14:35:29 +0000 (16:35 +0200)]
m_dnsbl Fix possible use-after-free after a rehash

10 years agom_ssl_gnutls Fix feature testing and cipher suite related errors on older GnuTLS...
attilamolnar [Tue, 13 Aug 2013 12:10:04 +0000 (14:10 +0200)]
m_ssl_gnutls Fix feature testing and cipher suite related errors on older GnuTLS versions

Use the (old) LIBGNUTLS_VERSION_* defines as a fallback when GNUTLS_VERSION_* is unavailable

Fixes #595 reported by @rhylan

10 years agoUse server ids when propagating squits
Adam [Fri, 26 Jul 2013 11:33:45 +0000 (07:33 -0400)]
Use server ids when propagating squits

10 years agoFix generated snomask mode change string being incosistent with the input in certain...
attilamolnar [Sat, 20 Jul 2013 16:45:35 +0000 (18:45 +0200)]
Fix generated snomask mode change string being incosistent with the input in certain cases, spotted by @Robby-

10 years agom_ssl_openssl Fix inverted check that prevented certificates from being recognized...
attilamolnar [Tue, 16 Jul 2013 20:30:18 +0000 (22:30 +0200)]
m_ssl_openssl Fix inverted check that prevented certificates from being recognized as trusted

10 years agoUse the correct socket related error messages on Windows
Adam [Wed, 3 Jul 2013 21:26:45 +0000 (17:26 -0400)]
Use the correct socket related error messages on Windows

10 years agoClean up error handling in threadengine_win32
attilamolnar [Fri, 12 Jul 2013 17:30:33 +0000 (19:30 +0200)]
Clean up error handling in threadengine_win32

10 years agoMerge pull request #588 from SaberUK/insp20+fix-socketengines
Attila Molnar [Fri, 12 Jul 2013 17:28:37 +0000 (10:28 -0700)]
Merge pull request #588 from SaberUK/insp20+fix-socketengines

[2.0] Fix various socket engine bugs.

10 years agom_userip Fix incorrect "variable may be used uninitialized" warning shown by older...
attilamolnar [Tue, 9 Jul 2013 15:34:10 +0000 (17:34 +0200)]
m_userip Fix incorrect "variable may be used uninitialized" warning shown by older GCC versions

10 years agoDo not send too much data over SSL in one go
attilamolnar [Wed, 19 Jun 2013 19:53:12 +0000 (21:53 +0200)]
Do not send too much data over SSL in one go

Some clients fail to read it entirely and the remaining data stays in their read buffer until new data arrives

10 years agoFix the Poll socket engine on BSD.
Peter Powell [Sun, 7 Jul 2013 15:33:31 +0000 (16:33 +0100)]
Fix the Poll socket engine on BSD.

10 years agoFix low risk crash when we can't determine maximum open socket count.
Peter Powell [Sun, 7 Jul 2013 15:25:11 +0000 (16:25 +0100)]
Fix low risk crash when we can't determine maximum open socket count.

11 years agoMerge pull request #563 from ElementalAlchemist/patch-1
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

11 years agoPrevent m_cgiirc from blocking indefinitely, resulting in registration timeouts on...
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

11 years agom_spanningtree FJOIN handler: Merge and take maxmodes into consideration when applyin...
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

11 years agoFix high CPU use on Windows when connecting to a server
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

11 years agoRelease 2.0.13
attilamolnar [Wed, 5 Jun 2013 21:28:45 +0000 (23:28 +0200)]
Release 2.0.13

11 years agoRemove unnecessary string copies and dead code
attilamolnar [Wed, 5 Jun 2013 21:11:50 +0000 (23:11 +0200)]
Remove unnecessary string copies and dead code

11 years agoReport the full GnuTLS version in configure
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)

11 years agom_spanningtree Fix FIDENT routing
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

11 years agoFix inet_pton on Windows with IPv6 addresses
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-

11 years agom_pgsql Same fix as 0e09600a431d0e0f2cde6457e088d84caf6d6f5d
attilamolnar [Tue, 4 Jun 2013 19:38:03 +0000 (21:38 +0200)]
m_pgsql Same fix as 0e09600a431d0e0f2cde6457e088d84caf6d6f5d

11 years agocmd_who Hide +i users when listing users on a server and hidewhois is off
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

11 years agom_mysql Fix escaping strings longer than MAXBUF/2
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

11 years agom_userip Allow querying own IP for non-opers, require the users/auspex priv for opers...
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