]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
7 years agoCheck for errors after calling IOHookProvider::OnAccept()
Attila Molnar [Wed, 24 Aug 2016 10:27:51 +0000 (12:27 +0200)]
Check for errors after calling IOHookProvider::OnAccept()

7 years agoCall IOHookProviders after the socket has been added to the SocketEngine in UserManag...
Attila Molnar [Wed, 24 Aug 2016 10:18:27 +0000 (12:18 +0200)]
Call IOHookProviders after the socket has been added to the SocketEngine in UserManager::AddUser()

7 years agoAdd socket into the SocketEngine as soon as possible in UserManager::AddUser()
Attila Molnar [Wed, 24 Aug 2016 10:14:38 +0000 (12:14 +0200)]
Add socket into the SocketEngine as soon as possible in UserManager::AddUser()

7 years agom_messageflood Improve kick message
Attila Molnar [Wed, 24 Aug 2016 10:07:31 +0000 (12:07 +0200)]
m_messageflood Improve kick message

Fixes issue #1019 reported by @B00mX0r

Also add back a missing word caused by an oversight in #531

7 years agoRemove broken mssql module
Attila Molnar [Tue, 23 Aug 2016 17:51:06 +0000 (19:51 +0200)]
Remove broken mssql module

Issue #1006

7 years agoMerge branch 'master+ircstring'
Attila Molnar [Tue, 23 Aug 2016 17:37:03 +0000 (19:37 +0200)]
Merge branch 'master+ircstring'

7 years agoUpdate documentation in hashcomp.h
Attila Molnar [Mon, 22 Aug 2016 15:22:19 +0000 (17:22 +0200)]
Update documentation in hashcomp.h

7 years agoRemove all non-member irc::string operators
Attila Molnar [Mon, 22 Aug 2016 15:13:18 +0000 (17:13 +0200)]
Remove all non-member irc::string operators

7 years agom_censor Pass irc::string as C string to WriteNumeric()
Attila Molnar [Mon, 22 Aug 2016 15:12:42 +0000 (17:12 +0200)]
m_censor Pass irc::string as C string to WriteNumeric()

Avoids a call to the templated ConvToStr() which uses std::stringstream for conversion

7 years agoRemove now unused SearchAndReplace() function
Attila Molnar [Mon, 22 Aug 2016 15:11:38 +0000 (17:11 +0200)]
Remove now unused SearchAndReplace() function

7 years agom_censor Switch to stdalgo::string::replace_all()
Attila Molnar [Mon, 22 Aug 2016 15:11:03 +0000 (17:11 +0200)]
m_censor Switch to stdalgo::string::replace_all()

7 years agoAdd stdalgo::string::replace() and replace_all()
Attila Molnar [Mon, 22 Aug 2016 15:10:41 +0000 (17:10 +0200)]
Add stdalgo::string::replace() and replace_all()

7 years agoRemove now unused assign() functions
Attila Molnar [Mon, 22 Aug 2016 15:03:59 +0000 (17:03 +0200)]
Remove now unused assign() functions

7 years agom_spanningtree Use ASCII case insensitive map for matching server names
Attila Molnar [Mon, 22 Aug 2016 15:03:14 +0000 (17:03 +0200)]
m_spanningtree Use ASCII case insensitive map for matching server names

7 years agom_spanningtree Change type of Link::Name to std::string
Attila Molnar [Mon, 22 Aug 2016 15:02:34 +0000 (17:02 +0200)]
m_spanningtree Change type of Link::Name to std::string

Switch to stdalgo::string::equalsci()

7 years agom_timedbans Remove TimedBan::channel
Attila Molnar [Mon, 22 Aug 2016 14:57:57 +0000 (16:57 +0200)]
m_timedbans Remove TimedBan::channel

7 years agom_cban Remove now unnecessary field CBan::displaytext
Attila Molnar [Mon, 22 Aug 2016 14:55:07 +0000 (16:55 +0200)]
m_cban Remove now unnecessary field CBan::displaytext

7 years agoSwitch to irc::equals() from irc::string in modules that use it for comparing names...
Attila Molnar [Mon, 22 Aug 2016 14:54:25 +0000 (16:54 +0200)]
Switch to irc::equals() from irc::string in modules that use it for comparing names of IRC objects

7 years agoCreate irc::equals() from StrHashComp
Attila Molnar [Mon, 22 Aug 2016 14:49:18 +0000 (16:49 +0200)]
Create irc::equals() from StrHashComp

Make StrHashComp a wrapper around it

7 years agoAdd stdalgo::string::equalsci and use it instead of irc::string for case-insensitive...
Attila Molnar [Mon, 22 Aug 2016 14:46:44 +0000 (16:46 +0200)]
Add stdalgo::string::equalsci and use it instead of irc::string for case-insensitive comparison

7 years agom_services_account Detect nickname case changes by using FindNickOnly()
Attila Molnar [Mon, 22 Aug 2016 14:39:53 +0000 (16:39 +0200)]
m_services_account Detect nickname case changes by using FindNickOnly()

Gets rid of assign()

7 years agom_timedbans Remove one irc::string usage
Attila Molnar [Mon, 22 Aug 2016 14:39:08 +0000 (16:39 +0200)]
m_timedbans Remove one irc::string usage

7 years agoReplace irc::string in XLineLookup with irc::insensitive_swo map
Attila Molnar [Mon, 22 Aug 2016 14:37:32 +0000 (16:37 +0200)]
Replace irc::string in XLineLookup with irc::insensitive_swo map

7 years agoReplace irc::string usage in CommandParser::LoopCall() with irc::insensitive_swo set
Attila Molnar [Mon, 22 Aug 2016 14:35:11 +0000 (16:35 +0200)]
Replace irc::string usage in CommandParser::LoopCall() with irc::insensitive_swo set

7 years agoRemove unused irc::tokenstream::GetToken() overload accepting an irc::string
Attila Molnar [Mon, 22 Aug 2016 14:34:00 +0000 (16:34 +0200)]
Remove unused irc::tokenstream::GetToken() overload accepting an irc::string

7 years agoRemove unused irc::hash
Attila Molnar [Mon, 22 Aug 2016 14:32:51 +0000 (16:32 +0200)]
Remove unused irc::hash

7 years agoRemove unused trim() function
Attila Molnar [Mon, 22 Aug 2016 14:30:02 +0000 (16:30 +0200)]
Remove unused trim() function

7 years agoMerge pull request #1200 from SaberUK/master+travis
Attila Molnar [Fri, 19 Aug 2016 16:01:43 +0000 (18:01 +0200)]
Merge pull request #1200 from SaberUK/master+travis

Fix Travis builds on master.

7 years agoFix m_mysql warning about use of C++11 features on C++03.
Peter Powell [Fri, 19 Aug 2016 13:44:17 +0000 (14:44 +0100)]
Fix m_mysql warning about use of C++11 features on C++03.

NO_CLIENT_LONG_LONG was removed in a recent version of MySQL.

7 years agoDon't try to run `inspircd --version` after doing a Travis build.
Peter Powell [Fri, 19 Aug 2016 13:15:34 +0000 (14:15 +0100)]
Don't try to run `inspircd --version` after doing a Travis build.

All of the files will have already been removed by test-build.

7 years agoFix poll using int instead of size_t which caused a warning.
Peter Powell [Fri, 19 Aug 2016 12:59:07 +0000 (13:59 +0100)]
Fix poll using int instead of size_t which caused a warning.

7 years agoFix linker flags being in the wrong place on static builds.
Peter Powell [Fri, 19 Aug 2016 12:47:37 +0000 (13:47 +0100)]
Fix linker flags being in the wrong place on static builds.

7 years agoFix a build error in the poll socket engine.
Peter Powell [Fri, 19 Aug 2016 11:56:01 +0000 (12:56 +0100)]
Fix a build error in the poll socket engine.

7 years agoFix m_ldap not linking to liblber on UNIX systems.
Peter Powell [Fri, 19 Aug 2016 11:35:27 +0000 (12:35 +0100)]
Fix m_ldap not linking to liblber on UNIX systems.

7 years agom_spanningtree Put command handlers with class names that collide with core commands...
Attila Molnar [Fri, 19 Aug 2016 09:21:19 +0000 (11:21 +0200)]
m_spanningtree Put command handlers with class names that collide with core commands into the SpanningTree namespace

This fixes issues in static builds

7 years agom_monitor Add inline keyword to IRCv3::Monitor::Manager::ExtItem::unserialize to...
Attila Molnar [Fri, 19 Aug 2016 09:05:01 +0000 (11:05 +0200)]
m_monitor Add inline keyword to IRCv3::Monitor::Manager::ExtItem::unserialize to fix static builds

7 years agom_ldap Remove unused LDAPService::last_timeout_check
Attila Molnar [Fri, 19 Aug 2016 07:58:58 +0000 (09:58 +0200)]
m_ldap Remove unused LDAPService::last_timeout_check

7 years agoMerge insp20
Attila Molnar [Wed, 17 Aug 2016 10:49:48 +0000 (12:49 +0200)]
Merge insp20

7 years agocore_hostname_lookup: find answer record of the correct type instead of assuming...
Adam [Mon, 15 Aug 2016 23:25:54 +0000 (19:25 -0400)]
core_hostname_lookup: find answer record of the correct type instead of assuming it is first

7 years agoRelease v2.0.22
Attila Molnar [Sat, 13 Aug 2016 16:23:19 +0000 (18:23 +0200)]
Release v2.0.22

7 years agom_censor Fix possible incorrect cast of dest
Attila Molnar [Sat, 13 Aug 2016 16:23:12 +0000 (18:23 +0200)]
m_censor Fix possible incorrect cast of dest

7 years agoFix more incorrect std::string::operator[] usage
Attila Molnar [Sat, 13 Aug 2016 16:11:57 +0000 (18:11 +0200)]
Fix more incorrect std::string::operator[] usage

7 years agoUpdate description of class EventHandler
Attila Molnar [Thu, 11 Aug 2016 09:23:38 +0000 (11:23 +0200)]
Update description of class EventHandler

Readable() and Writeable() was removed long ago

7 years agoReplace HandleEvent() references in the SocketEngine documentation with OnEventHandler*()
Attila Molnar [Thu, 11 Aug 2016 09:19:28 +0000 (11:19 +0200)]
Replace HandleEvent() references in the SocketEngine documentation with OnEventHandler*()

7 years agoRemove virtual destructor of class Version
Attila Molnar [Thu, 11 Aug 2016 08:58:21 +0000 (10:58 +0200)]
Remove virtual destructor of class Version

No classes inherit from it and it is only used as the return value from Module::GetVersion() which returns it by value

7 years agosocketengine_epoll Remove unused #define EP_DELAY 5
Attila Molnar [Thu, 11 Aug 2016 08:56:47 +0000 (10:56 +0200)]
socketengine_epoll Remove unused #define EP_DELAY 5

7 years agoInitialize more User and LocalUser fields using the init list
Attila Molnar [Wed, 10 Aug 2016 15:30:02 +0000 (17:30 +0200)]
Initialize more User and LocalUser fields using the init list

7 years agoUpdate style of initializer lists in User and LocalUser constructors
Attila Molnar [Wed, 10 Aug 2016 15:26:49 +0000 (17:26 +0200)]
Update style of initializer lists in User and LocalUser constructors

7 years agom_ssl_mbedtls Apply dummy CA workaround for client context
Attila Molnar [Wed, 10 Aug 2016 14:17:40 +0000 (16:17 +0200)]
m_ssl_mbedtls Apply dummy CA workaround for client context

7 years agoMerge branch 'master+websocket'
Attila Molnar [Wed, 10 Aug 2016 13:57:04 +0000 (15:57 +0200)]
Merge branch 'master+websocket'

7 years agom_ssl_* Add option to sslprofile controlling whether to request client certificates
Attila Molnar [Mon, 8 Aug 2016 14:42:54 +0000 (16:42 +0200)]
m_ssl_* Add option to sslprofile controlling whether to request client certificates

7 years agoUpdate comments for classes IOHookProvider and IOHook
Attila Molnar [Mon, 8 Aug 2016 14:30:04 +0000 (16:30 +0200)]
Update comments for classes IOHookProvider and IOHook

7 years agoAdd WebSocket module
Attila Molnar [Mon, 8 Aug 2016 14:17:27 +0000 (16:17 +0200)]
Add WebSocket module

7 years agoAdd SHA1 module
Attila Molnar [Mon, 8 Aug 2016 13:20:50 +0000 (15:20 +0200)]
Add SHA1 module

7 years agoKeep multiple IOHookProvider references in class ListenSocket
Attila Molnar [Mon, 8 Aug 2016 13:10:43 +0000 (15:10 +0200)]
Keep multiple IOHookProvider references in class ListenSocket

This adds the <bind:hook> config option which works together with <bind:ssl>

7 years agoInclude <array> or <tr1/array> globally
Attila Molnar [Mon, 8 Aug 2016 13:07:32 +0000 (15:07 +0200)]
Include <array> or <tr1/array> globally

7 years agoChange return type of ListenSocket::ResetIOHookProvider() to void
Attila Molnar [Mon, 8 Aug 2016 13:06:41 +0000 (15:06 +0200)]
Change return type of ListenSocket::ResetIOHookProvider() to void

No code was using the return value

7 years agoAdd StreamSocket::SendQueue::moveall() for moving data between sendqs
Attila Molnar [Mon, 8 Aug 2016 13:04:17 +0000 (15:04 +0200)]
Add StreamSocket::SendQueue::moveall() for moving data between sendqs

7 years agoAdd support for multiple IOHooks per StreamSocket
Attila Molnar [Mon, 8 Aug 2016 13:02:28 +0000 (15:02 +0200)]
Add support for multiple IOHooks per StreamSocket

7 years agoCall StreamSocket::OnDataReady() from only one place
Attila Molnar [Mon, 8 Aug 2016 12:39:09 +0000 (14:39 +0200)]
Call StreamSocket::OnDataReady() from only one place

Call it whenever the recvq gets bigger than it was before the read

7 years agoExtract code that reads data into a recvq from StreamSocket::DoRead() into ReadToRecvQ()
Attila Molnar [Mon, 8 Aug 2016 12:37:22 +0000 (14:37 +0200)]
Extract code that reads data into a recvq from StreamSocket::DoRead() into ReadToRecvQ()

7 years agoExtract code that flushes the sendq from StreamSocket::DoWrite() into FlushSendQ()
Attila Molnar [Mon, 8 Aug 2016 12:35:00 +0000 (14:35 +0200)]
Extract code that flushes the sendq from StreamSocket::DoWrite() into FlushSendQ()

7 years agoAdd StreamSocket::GetModHook() for obtaining the IOHook belonging to a given module
Attila Molnar [Mon, 8 Aug 2016 12:31:49 +0000 (14:31 +0200)]
Add StreamSocket::GetModHook() for obtaining the IOHook belonging to a given module

Use it to simplify logic in all modules using or providing IOHooks

7 years agoPass sendq to OnStreamSocketWrite
Attila Molnar [Mon, 8 Aug 2016 12:28:02 +0000 (14:28 +0200)]
Pass sendq to OnStreamSocketWrite

7 years agoPredeclare IOHookProvider, remove iohook.h include from socket.h
Attila Molnar [Mon, 8 Aug 2016 12:24:40 +0000 (14:24 +0200)]
Predeclare IOHookProvider, remove iohook.h include from socket.h

7 years agoMerge pull request #1196 from SaberUK/insp20+sha256
Attila Molnar [Mon, 8 Aug 2016 08:57:04 +0000 (10:57 +0200)]
Merge pull request #1196 from SaberUK/insp20+sha256

[2.0] Fix challenge auth when using m_hash_gnutls instead of m_sha256.

7 years agoFix challenge auth when using m_hash_gnutls instead of m_sha256.
Peter Powell [Fri, 5 Aug 2016 19:50:11 +0000 (20:50 +0100)]
Fix challenge auth when using m_hash_gnutls instead of m_sha256.

7 years agoMerge pull request #1193 from Adam-/insp20+banburst
Attila Molnar [Tue, 2 Aug 2016 08:16:24 +0000 (10:16 +0200)]
Merge pull request #1193 from Adam-/insp20+banburst

Fix bursting channel bans

7 years agoFix bursting channel bans
Adam [Fri, 29 Jul 2016 17:09:43 +0000 (13:09 -0400)]
Fix bursting channel bans

7 years agoMerge pull request #1191 from SaberUK/insp20+travis
Attila Molnar [Mon, 1 Aug 2016 07:50:40 +0000 (09:50 +0200)]
Merge pull request #1191 from SaberUK/insp20+travis

[2.0] Force link sqlite3 on OS X when doing Travis builds.

7 years agoForce link sqlite3 on OS X when doing Travis builds.
Peter Powell [Thu, 28 Jul 2016 14:32:13 +0000 (15:32 +0100)]
Force link sqlite3 on OS X when doing Travis builds.

The system version of this library does not include support for pkg-config.

7 years agoAdd a method which calculates the maximum mask length. (#1171)
Peter Powell [Fri, 22 Jul 2016 10:26:11 +0000 (11:26 +0100)]
Add a method which calculates the maximum mask length. (#1171)

7 years agoTell git to store .bat files as CRLF (#1030)
Christian Höltje [Fri, 22 Jul 2016 10:20:44 +0000 (06:20 -0400)]
Tell git to store .bat files as CRLF (#1030)

7 years agostripcolor now strips from part messages (#1175)
0x277F [Fri, 22 Jul 2016 10:12:05 +0000 (04:12 -0600)]
stripcolor now strips from part messages (#1175)

7 years agom_ssl_openssl Verify DH params being non-NULL before setting it on the context
Attila Molnar [Fri, 22 Jul 2016 10:04:35 +0000 (12:04 +0200)]
m_ssl_openssl Verify DH params being non-NULL before setting it on the context

Fixes issue reported by @m4rkw on IRC

8 years agoMerge pull request #1181 from SaberUK/insp20+null
Attila Molnar [Mon, 27 Jun 2016 14:55:40 +0000 (16:55 +0200)]
Merge pull request #1181 from SaberUK/insp20+null

[2.0] GCC should never assume that this can not be null.

8 years agoMerge pull request #1187 from SaberUK/master+431
Attila Molnar [Mon, 27 Jun 2016 14:52:13 +0000 (16:52 +0200)]
Merge pull request #1187 from SaberUK/master+431

Fix a minor oversight in ERR_NONICKNAMEGIVEN.

8 years agoFix a minor oversight in ERR_NONICKNAMEGIVEN.
Peter Powell [Wed, 22 Jun 2016 09:27:18 +0000 (10:27 +0100)]
Fix a minor oversight in ERR_NONICKNAMEGIVEN.

8 years agoGCC should never assume that this can not be null.
Peter Powell [Sat, 4 Jun 2016 11:55:17 +0000 (12:55 +0100)]
GCC should never assume that this can not be null.

8 years agoMerge pull request #1186 from SaberUK/master+build-system-cleanup
Attila Molnar [Mon, 27 Jun 2016 14:14:30 +0000 (16:14 +0200)]
Merge pull request #1186 from SaberUK/master+build-system-cleanup

Pass INSPIRCD_VERBOSE through the environment to unit-cc.

8 years agoMerge pull request #1182 from SaberUK/master+431
Attila Molnar [Mon, 27 Jun 2016 14:13:18 +0000 (16:13 +0200)]
Merge pull request #1182 from SaberUK/master+431

Fix sending the wrong numeric when an empty new nick is received.

8 years agoPass INSPIRCD_VERBOSE through the environment to unit-cc.
Peter Powell [Mon, 4 Apr 2016 14:37:33 +0000 (15:37 +0100)]
Pass INSPIRCD_VERBOSE through the environment to unit-cc.

8 years agoFix cleaning files generated by configure.
Peter Powell [Mon, 4 Apr 2016 15:17:15 +0000 (16:17 +0100)]
Fix cleaning files generated by configure.

This is an oversight from f79a55616b5ff05d4f2e6b031a17be5668d1d3ea.

8 years agoFix sending the wrong numeric when an empty new nick is received.
Peter Powell [Wed, 22 Jun 2016 09:27:18 +0000 (10:27 +0100)]
Fix sending the wrong numeric when an empty new nick is received.

8 years agom_ssl_gnutls, m_ssl_openssl After a read schedule another read if data remains in...
Attila Molnar [Tue, 21 Jun 2016 13:07:43 +0000 (15:07 +0200)]
m_ssl_gnutls, m_ssl_openssl After a read schedule another read if data remains in the buffer of the SSL library

8 years agoDon't exit on rehash if the pid file cannot be written
Attila Molnar [Fri, 17 Jun 2016 10:04:12 +0000 (12:04 +0200)]
Don't exit on rehash if the pid file cannot be written

8 years agoAdd mbedTLS SSL module
Attila Molnar [Wed, 15 Jun 2016 16:23:04 +0000 (18:23 +0200)]
Add mbedTLS SSL module

8 years agoStop processing the new connection in UserManager::AddUser() when an internal SocketE...
Attila Molnar [Mon, 13 Jun 2016 11:05:18 +0000 (13:05 +0200)]
Stop processing the new connection in UserManager::AddUser() when an internal SocketEngine error happens and the user is quitted

8 years agoFix for GCC 6 rightfully optimizing out the NULL check of 'this' in ConfigTag::readSt...
Attila Molnar [Thu, 9 Jun 2016 13:12:35 +0000 (15:12 +0200)]
Fix for GCC 6 rightfully optimizing out the NULL check of 'this' in ConfigTag::readString()

Checking is only necessary in ModuleSSLInfo::OnPostConnect() as oper types are not encountered in the other cases but check anyway to be sure

8 years agoMerge pull request #1174 from SaberUK/insp20+hideoper-warning
Attila Molnar [Mon, 30 May 2016 13:44:31 +0000 (15:44 +0200)]
Merge pull request #1174 from SaberUK/insp20+hideoper-warning

Fix a minor warning in m_hideoper on some systems.

8 years agoMerge pull request #1179 from SaberUK/insp20+fix-buildprefixes
Attila Molnar [Mon, 30 May 2016 13:42:52 +0000 (15:42 +0200)]
Merge pull request #1179 from SaberUK/insp20+fix-buildprefixes

[2.0] Fix 005 not showing some modes with the same rank as others.

8 years agoFix 005 not showing some modes with the same rank as others.
Peter Powell [Sun, 29 May 2016 02:41:00 +0000 (03:41 +0100)]
Fix 005 not showing some modes with the same rank as others.

8 years agoFix a minor warning in m_hideoper on some systems.
Peter Powell [Tue, 3 May 2016 17:47:15 +0000 (18:47 +0100)]
Fix a minor warning in m_hideoper on some systems.

8 years agoUpdate .gitignore to reflect LDAP module changes
Attila Molnar [Tue, 3 May 2016 12:30:25 +0000 (14:30 +0200)]
Update .gitignore to reflect LDAP module changes

8 years agoMerge branch 'master+sslconnmsg'
Attila Molnar [Sat, 30 Apr 2016 14:54:37 +0000 (16:54 +0200)]
Merge branch 'master+sslconnmsg'

8 years agom_spanningtree Send snotice with the negotiated ciphersuite when connected using SSL
Attila Molnar [Thu, 28 Apr 2016 15:12:06 +0000 (17:12 +0200)]
m_spanningtree Send snotice with the negotiated ciphersuite when connected using SSL

8 years agoDeduplicate code for on connect SSL ciphersuite NOTICE by moving it into m_sslinfo
Attila Molnar [Thu, 28 Apr 2016 15:10:10 +0000 (17:10 +0200)]
Deduplicate code for on connect SSL ciphersuite NOTICE by moving it into m_sslinfo

8 years agoExport the GetCiphersuite() method from the SSL modules
Attila Molnar [Thu, 28 Apr 2016 15:06:16 +0000 (17:06 +0200)]
Export the GetCiphersuite() method from the SSL modules

8 years agoAdd SSLIOHook::IsSSL() to determine whether a socket is using SSL or not
Attila Molnar [Thu, 28 Apr 2016 15:04:33 +0000 (17:04 +0200)]
Add SSLIOHook::IsSSL() to determine whether a socket is using SSL or not

Use it in a few places

8 years agoMerge branch 'master+sasloffline'
Attila Molnar [Tue, 26 Apr 2016 13:02:50 +0000 (15:02 +0200)]
Merge branch 'master+sasloffline'