]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
7 years agoMerge pull request #1222 from SaberUK/master+warnings
Attila Molnar [Fri, 16 Sep 2016 08:55:29 +0000 (10:55 +0200)]
Merge pull request #1222 from SaberUK/master+warnings

Fix various compiler warnings

7 years agoMerge pull request #1219 from SaberUK/master+directive
Attila Molnar [Fri, 16 Sep 2016 08:54:15 +0000 (10:54 +0200)]
Merge pull request #1219 from SaberUK/master+directive

Rewrite the build system directive parser.

7 years agoMerge pull request #1176 from SaberUK/master+format
Attila Molnar [Fri, 16 Sep 2016 08:53:19 +0000 (10:53 +0200)]
Merge pull request #1176 from SaberUK/master+format

Replace snprintf usage with InspIRCd::Format.

7 years agoRewrite the build system directive parser.
Peter Powell [Sun, 11 Sep 2016 20:19:28 +0000 (21:19 +0100)]
Rewrite the build system directive parser.

7 years agoFix m_ldap warning about OpenLDAP being deprecated on OS X.
Peter Powell [Wed, 14 Sep 2016 23:11:22 +0000 (00:11 +0100)]
Fix m_ldap warning about OpenLDAP being deprecated on OS X.

7 years agoFix m_geoip warning about the use of C++11 features.
Peter Powell [Mon, 12 Sep 2016 23:10:30 +0000 (00:10 +0100)]
Fix m_geoip warning about the use of C++11 features.

7 years agoFix print_format breaking when formatting empty strings.
Peter Powell [Mon, 12 Sep 2016 03:17:55 +0000 (04:17 +0100)]
Fix print_format breaking when formatting empty strings.

7 years agoAllow print_error and print_warning to take multiple lines.
Peter Powell [Thu, 28 May 2015 10:58:02 +0000 (11:58 +0100)]
Allow print_error and print_warning to take multiple lines.

7 years agoMerge pull request #1220 from SaberUK/master+isupport
Attila Molnar [Wed, 14 Sep 2016 15:07:53 +0000 (17:07 +0200)]
Merge pull request #1220 from SaberUK/master+isupport

Improve the default ISUPPORT tokens.

7 years agoImprove the default ISUPPORT tokens.
Peter Powell [Wed, 14 Sep 2016 01:35:05 +0000 (02:35 +0100)]
Improve the default ISUPPORT tokens.

- Replace the deprecated MAXCHANNELS token with CHANLIMIT.
- Remove the deprecated FNC token (other implementations can force
  a nick change without sending this token so informing clients of
  that we might force a nick change is pointless)

7 years agom_shun Add support for shunning CIDR masks
Attila Molnar [Mon, 12 Sep 2016 16:28:00 +0000 (18:28 +0200)]
m_shun Add support for shunning CIDR masks

Issue #1195

7 years agoChange type of log messages to MODNAME in several modules
Attila Molnar [Mon, 12 Sep 2016 15:26:05 +0000 (17:26 +0200)]
Change type of log messages to MODNAME in several modules

7 years agoMerge pull request #1217 from SaberUK/master+die-restart
Attila Molnar [Mon, 12 Sep 2016 15:20:51 +0000 (17:20 +0200)]
Merge pull request #1217 from SaberUK/master+die-restart

Undocument <power> and set the default to the server name.

7 years agoMerge pull request #1214 from SaberUK/master+hash
Attila Molnar [Mon, 12 Sep 2016 14:44:30 +0000 (16:44 +0200)]
Merge pull request #1214 from SaberUK/master+hash

Update documentation for password hashing.

7 years agoUndocument <power> and set the default to the server name.
Peter Powell [Sun, 11 Sep 2016 00:15:44 +0000 (01:15 +0100)]
Undocument <power> and set the default to the server name.

7 years agoUpdate documentation for password hashing.
Peter Powell [Fri, 9 Sep 2016 09:20:16 +0000 (10:20 +0100)]
Update documentation for password hashing.

- Follow best current practises by using bcrypt almost everywhere
  in the example configuration files.
- Document the existence of new hashing modules in master.

7 years agoReplace snprintf usage with InspIRCd::Format.
Peter Powell [Sat, 7 May 2016 22:07:55 +0000 (23:07 +0100)]
Replace snprintf usage with InspIRCd::Format.

7 years agoRelease v3.0.0 alpha 1
Attila Molnar [Fri, 2 Sep 2016 20:15:31 +0000 (22:15 +0200)]
Release v3.0.0 alpha 1

7 years agoUpdate stuff for the new versioning system.
Peter Powell [Fri, 2 Sep 2016 18:43:53 +0000 (19:43 +0100)]
Update stuff for the new versioning system.

7 years agoBump version to 3.0 in comments and messages
Attila Molnar [Fri, 2 Sep 2016 19:51:19 +0000 (21:51 +0200)]
Bump version to 3.0 in comments and messages

7 years agoMerge insp20
Attila Molnar [Fri, 2 Sep 2016 18:58:58 +0000 (20:58 +0200)]
Merge insp20

7 years agom_dnsbl Use FindAnswerOfType
Adam [Fri, 2 Sep 2016 16:43:13 +0000 (12:43 -0400)]
m_dnsbl Use FindAnswerOfType

7 years agom_spanningtree Allow multiple valid ips for link blocks as a result of SecurityIPResolver
Adam [Fri, 2 Sep 2016 16:43:13 +0000 (12:43 -0400)]
m_spanningtree Allow multiple valid ips for link blocks as a result of SecurityIPResolver

7 years agoFix Windows build and most MSVC warnings
Attila Molnar [Fri, 2 Sep 2016 17:58:44 +0000 (19:58 +0200)]
Fix Windows build and most MSVC warnings

7 years agom_spanningtree Add workaround to make SVS* commands work when using ENCAP
Attila Molnar [Fri, 2 Sep 2016 17:26:51 +0000 (19:26 +0200)]
m_spanningtree Add workaround to make SVS* commands work when using ENCAP

7 years agom_spanningtree Refuse topic changes that would result in desync
Attila Molnar [Fri, 2 Sep 2016 17:22:50 +0000 (19:22 +0200)]
m_spanningtree Refuse topic changes that would result in desync

This is a workaround until the protocol is updated

7 years agom_jumpserver Prevent OnUserRegister from running in other modules for users we quit
Attila Molnar [Fri, 2 Sep 2016 15:08:41 +0000 (17:08 +0200)]
m_jumpserver Prevent OnUserRegister from running in other modules for users we quit

7 years agoFix whitespace issues
Attila Molnar [Fri, 2 Sep 2016 11:20:16 +0000 (13:20 +0200)]
Fix whitespace issues

7 years agoReturn std::string from Membership::GetAllPrefixChars()
Attila Molnar [Tue, 30 Aug 2016 14:33:46 +0000 (16:33 +0200)]
Return std::string from Membership::GetAllPrefixChars()

7 years agom_deaf Remove pointless member prefix check
Attila Molnar [Tue, 30 Aug 2016 14:31:49 +0000 (16:31 +0200)]
m_deaf Remove pointless member prefix check

Inserting members who lack the required status into the except list makes no difference, they won't get the message either way

7 years agom_deaf Fix inverted check
Attila Molnar [Tue, 30 Aug 2016 14:30:52 +0000 (16:30 +0200)]
m_deaf Fix inverted check

7 years agoChange Membership:hasMode() to accept a PrefixMode
Attila Molnar [Tue, 30 Aug 2016 14:19:31 +0000 (16:19 +0200)]
Change Membership:hasMode() to accept a PrefixMode

7 years agoReplace loop over alphabet with loop over mode list in several places
Attila Molnar [Tue, 30 Aug 2016 14:12:39 +0000 (16:12 +0200)]
Replace loop over alphabet with loop over mode list in several places

7 years agoPass the ModeHandler to User::HasModePermission()
Attila Molnar [Tue, 30 Aug 2016 14:05:01 +0000 (16:05 +0200)]
Pass the ModeHandler to User::HasModePermission()

Mark the method as const

7 years agoAdd const versions of ModeHandler::IsPrefixMode(), IsListModeBase() and IsParameterMode()
Attila Molnar [Tue, 30 Aug 2016 14:01:47 +0000 (16:01 +0200)]
Add const versions of ModeHandler::IsPrefixMode(), IsListModeBase() and IsParameterMode()

7 years agoMark ModeHandler::GetModeChar() and ModeWatcher::GetModeType() as const
Attila Molnar [Mon, 29 Aug 2016 12:50:59 +0000 (14:50 +0200)]
Mark ModeHandler::GetModeChar() and ModeWatcher::GetModeType() as const

7 years agoConvert ModeHandler::GetNumParams() to NeedsParam() that returns a bool
Attila Molnar [Mon, 29 Aug 2016 12:50:08 +0000 (14:50 +0200)]
Convert ModeHandler::GetNumParams() to NeedsParam() that returns a bool

7 years agoUnregister modes before unhooking extensions when unloading a module
Attila Molnar [Mon, 29 Aug 2016 12:34:19 +0000 (14:34 +0200)]
Unregister modes before unhooking extensions when unloading a module

Listmodes store their list in an extension that must be present when they are unset to show the modes being unset

7 years agoDeduplicate mode unregistering code in ModuleManager::DoSafeUnload() and extract...
Attila Molnar [Mon, 29 Aug 2016 12:33:25 +0000 (14:33 +0200)]
Deduplicate mode unregistering code in ModuleManager::DoSafeUnload() and extract into a method

7 years agoRemove unused EventHandlerIter typedef
Attila Molnar [Mon, 29 Aug 2016 12:30:41 +0000 (14:30 +0200)]
Remove unused EventHandlerIter typedef

7 years agom_spanningtree Drop unnecessary c_str() call when passing Link::Name to methods expec...
Attila Molnar [Fri, 26 Aug 2016 10:41:25 +0000 (12:41 +0200)]
m_spanningtree Drop unnecessary c_str() call when passing Link::Name to methods expecting std::string

7 years agom_spanningtree Handle unload in resolvers
Attila Molnar [Thu, 25 Aug 2016 16:01:50 +0000 (18:01 +0200)]
m_spanningtree Handle unload in resolvers

7 years agocore_dns Fail new requests when this module or the owner of the request is being...
Attila Molnar [Thu, 25 Aug 2016 15:58:30 +0000 (17:58 +0200)]
core_dns Fail new requests when this module or the owner of the request is being unloaded

7 years agospanningtree: use bindip aftype as a hint for dns lookup type
Adam [Tue, 19 Jan 2016 20:39:14 +0000 (15:39 -0500)]
spanningtree: use bindip aftype as a hint for dns lookup type

7 years agocore_dns Make question a member of request, move common FindAnswerOfType to be a...
Adam [Tue, 16 Aug 2016 16:43:40 +0000 (12:43 -0400)]
core_dns Make question a member of request, move common FindAnswerOfType to be a member of query

7 years agocore_dns Change type of all log messages to MODNAME
Attila Molnar [Thu, 25 Aug 2016 12:51:42 +0000 (14:51 +0200)]
core_dns Change type of all log messages to MODNAME

7 years agoUpdate UserManager documentation and comments
Attila Molnar [Wed, 24 Aug 2016 10:41:02 +0000 (12:41 +0200)]
Update UserManager documentation and comments

7 years agoDefault defer to on for SSL listeners
Attila Molnar [Wed, 24 Aug 2016 10:29:40 +0000 (12:29 +0200)]
Default defer to on for SSL listeners

Issue #1112

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 agom_sqlite3 Fix possible memory leak when opening a database fails
Attila Molnar [Wed, 17 Aug 2016 12:08:30 +0000 (14:08 +0200)]
m_sqlite3 Fix possible memory leak when opening a database fails

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