]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
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 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)

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 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 agoAdd mbedTLS SSL module
Attila Molnar [Wed, 15 Jun 2016 16:23:04 +0000 (18:23 +0200)]
Add mbedTLS SSL module

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'

8 years agom_sasl Advertise the sasl capability only if the target server is online
Attila Molnar [Mon, 25 Apr 2016 11:24:40 +0000 (13:24 +0200)]
m_sasl Advertise the sasl capability only if the target server is online

Issue #812

8 years agom_sasl Add ServerTracker class for tracking sasl_target
Attila Molnar [Mon, 25 Apr 2016 11:23:29 +0000 (13:23 +0200)]
m_sasl Add ServerTracker class for tracking sasl_target

8 years agom_spanningtree Call the OnServerLink hook from TreeServer constructor
Attila Molnar [Mon, 25 Apr 2016 11:18:02 +0000 (13:18 +0200)]
m_spanningtree Call the OnServerLink hook from TreeServer constructor

8 years agom_spanningtree Call the OnServerSplit hook from TreeServer::SQuitInternal() so it...
Attila Molnar [Mon, 25 Apr 2016 11:16:40 +0000 (13:16 +0200)]
m_spanningtree Call the OnServerSplit hook from TreeServer::SQuitInternal() so it runs for all lost servers

8 years agom_spanningtree Call the OnServerSplit hook from the OnUnloadModule() handler on unload
Attila Molnar [Mon, 25 Apr 2016 11:15:06 +0000 (13:15 +0200)]
m_spanningtree Call the OnServerSplit hook from the OnUnloadModule() handler on unload

8 years agom_spanningtree Don't try to call the OnServerSplit hook when the module is being...
Attila Molnar [Mon, 25 Apr 2016 11:12:03 +0000 (13:12 +0200)]
m_spanningtree Don't try to call the OnServerSplit hook when the module is being unloaded

8 years agom_spanningtree Ignore incoming BURST command in CONNECTED state
Attila Molnar [Wed, 13 Apr 2016 10:05:48 +0000 (12:05 +0200)]
m_spanningtree Ignore incoming BURST command in CONNECTED state

8 years agom_spanningtree Fix FJOIN forwarding
Attila Molnar [Wed, 13 Apr 2016 09:50:06 +0000 (11:50 +0200)]
m_spanningtree Fix FJOIN forwarding

8 years agom_spanningtree Resync servers when they recreate a channel outside of burst
Attila Molnar [Wed, 13 Apr 2016 09:46:55 +0000 (11:46 +0200)]
m_spanningtree Resync servers when they recreate a channel outside of burst

8 years agom_spanningtree Allow IJOIN with lower TS
Attila Molnar [Wed, 13 Apr 2016 09:46:35 +0000 (11:46 +0200)]
m_spanningtree Allow IJOIN with lower TS

8 years agoRefactor topic setting logic to go through Channel::SetTopic() in all cases
Attila Molnar [Mon, 11 Apr 2016 13:53:01 +0000 (15:53 +0200)]
Refactor topic setting logic to go through Channel::SetTopic() in all cases

- Pass topic set time and optionally the setter to SetTopic()
- Don't do anything if the topic is changed by a local user to what it is currently

8 years agoMerge pull request #1168 from SaberUK/master+fix-configure-cache-parser
Attila Molnar [Mon, 4 Apr 2016 17:33:37 +0000 (19:33 +0200)]
Merge pull request #1168 from SaberUK/master+fix-configure-cache-parser

Fix "use of uninitialized value $key in hash element" error.

8 years agoFix "use of uninitialized value $key in hash element" error.
Peter Powell [Mon, 4 Apr 2016 12:49:56 +0000 (13:49 +0100)]
Fix "use of uninitialized value $key in hash element" error.

8 years agoMerge pull request #1167 from SaberUK/master+collision
Attila Molnar [Mon, 4 Apr 2016 12:31:04 +0000 (14:31 +0200)]
Merge pull request #1167 from SaberUK/master+collision

Rename vague build environment variables to prevent collisions.

8 years agoRename M to INSPIRCD_MODULE.
Peter Powell [Thu, 31 Mar 2016 14:23:10 +0000 (15:23 +0100)]
Rename M to INSPIRCD_MODULE.

8 years agoRename T to INSPIRCD_TARGET.
Peter Powell [Thu, 31 Mar 2016 14:12:35 +0000 (15:12 +0100)]
Rename T to INSPIRCD_TARGET.

8 years agoRename D to INSPIRCD_DEBUG.
Peter Powell [Thu, 31 Mar 2016 14:06:49 +0000 (15:06 +0100)]
Rename D to INSPIRCD_DEBUG.

8 years agoRename V to INSPIRCD_VERBOSE.
Peter Powell [Thu, 31 Mar 2016 13:59:44 +0000 (14:59 +0100)]
Rename V to INSPIRCD_VERBOSE.

8 years agoRename PURE_STATIC to INSPIRCD_STATIC.
Peter Powell [Fri, 26 Feb 2016 13:12:09 +0000 (13:12 +0000)]
Rename PURE_STATIC to INSPIRCD_STATIC.

8 years agoRemove unused ProtocolInterface::SendTopic()
Attila Molnar [Wed, 30 Mar 2016 10:40:12 +0000 (12:40 +0200)]
Remove unused ProtocolInterface::SendTopic()

8 years agoRemove ProtocolInterface::PushToClient()
Attila Molnar [Wed, 30 Mar 2016 10:38:36 +0000 (12:38 +0200)]
Remove ProtocolInterface::PushToClient()

8 years agoRemove User::SendText() and overrides completely
Attila Molnar [Wed, 30 Mar 2016 10:37:29 +0000 (12:37 +0200)]
Remove User::SendText() and overrides completely

8 years agom_showfile Replace User::SendText() call with WriteCommand()
Attila Molnar [Wed, 30 Mar 2016 10:34:41 +0000 (12:34 +0200)]
m_showfile Replace User::SendText() call with WriteCommand()

8 years agom_spanningtree Remove PUSH handler
Attila Molnar [Wed, 30 Mar 2016 10:32:02 +0000 (12:32 +0200)]
m_spanningtree Remove PUSH handler

8 years agoMerge branch 'master+stnum'
Attila Molnar [Wed, 30 Mar 2016 10:30:26 +0000 (12:30 +0200)]
Merge branch 'master+stnum'

8 years agoMake User::WriteRemoteNumeric() virtual, implement it in SpanningTree::RemoteUser
Attila Molnar [Tue, 29 Mar 2016 14:43:30 +0000 (16:43 +0200)]
Make User::WriteRemoteNumeric() virtual, implement it in SpanningTree::RemoteUser

8 years agom_spanningtree Add CommandNum::Builder
Attila Molnar [Tue, 29 Mar 2016 14:39:06 +0000 (16:39 +0200)]
m_spanningtree Add CommandNum::Builder

8 years agom_spanningtree Translate NUM to PUSH and PUSH to NUM, NOTICE or PRIVMSG for 1202...
Attila Molnar [Tue, 29 Mar 2016 14:36:22 +0000 (16:36 +0200)]
m_spanningtree Translate NUM to PUSH and PUSH to NUM, NOTICE or PRIVMSG for 1202 protocol servers

8 years agom_spanningtree Add NUM command handler
Attila Molnar [Tue, 29 Mar 2016 14:28:01 +0000 (16:28 +0200)]
m_spanningtree Add NUM command handler

8 years agom_spanningtree Add class SpanningTree::RemoteUser
Attila Molnar [Tue, 29 Mar 2016 14:23:39 +0000 (16:23 +0200)]
m_spanningtree Add class SpanningTree::RemoteUser

8 years agoHandle numerics with a source other than the local server in User::WriteNumeric()
Attila Molnar [Tue, 29 Mar 2016 14:22:07 +0000 (16:22 +0200)]
Handle numerics with a source other than the local server in User::WriteNumeric()

8 years agoMerge branch 'master+stroute'
Attila Molnar [Tue, 29 Mar 2016 14:17:37 +0000 (16:17 +0200)]
Merge branch 'master+stroute'

8 years agoMerge pull request #1165 from Adam-/master+dnssource
Attila Molnar [Tue, 29 Mar 2016 13:58:56 +0000 (15:58 +0200)]
Merge pull request #1165 from Adam-/master+dnssource

core_dns: allow configuring source address

8 years agocore_dns: allow configuring source address
Adam [Mon, 28 Mar 2016 00:25:16 +0000 (20:25 -0400)]
core_dns: allow configuring source address

8 years agoSimplify GetRouting() methods doing unicast
Attila Molnar [Tue, 29 Mar 2016 10:54:02 +0000 (12:54 +0200)]
Simplify GetRouting() methods doing unicast

8 years agom_spanningtree Use SpanningTreeUtilities::FindRouteTarget() in RouteCommand()
Attila Molnar [Tue, 29 Mar 2016 10:50:00 +0000 (12:50 +0200)]
m_spanningtree Use SpanningTreeUtilities::FindRouteTarget() in RouteCommand()

This makes ROUTE_UNICAST() accept nicks and uuids

8 years agom_spanningtree Add SpanningTreeUtilities::FindRouteTarget()
Attila Molnar [Tue, 29 Mar 2016 10:49:25 +0000 (12:49 +0200)]
m_spanningtree Add SpanningTreeUtilities::FindRouteTarget()

8 years agom_spanningtree Remove unused SpanningTreeUtilities::BestRouteTo()
Attila Molnar [Tue, 29 Mar 2016 10:46:12 +0000 (12:46 +0200)]
m_spanningtree Remove unused SpanningTreeUtilities::BestRouteTo()

8 years agom_spanningtree Remove unused SpanningTreeUtilities::DoOneToOne() overload accepting...
Attila Molnar [Tue, 29 Mar 2016 10:45:37 +0000 (12:45 +0200)]
m_spanningtree Remove unused SpanningTreeUtilities::DoOneToOne() overload accepting a string

8 years agom_spanningtree Remove unused CommandBuilder::Unicast() overload accepting a string
Attila Molnar [Tue, 29 Mar 2016 10:45:02 +0000 (12:45 +0200)]
m_spanningtree Remove unused CommandBuilder::Unicast() overload accepting a string

8 years agoEnsure server names passed to some commands are really server names
Attila Molnar [Tue, 29 Mar 2016 10:38:41 +0000 (12:38 +0200)]
Ensure server names passed to some commands are really server names

8 years agocore_info Deduplicate code by inheriting some commands from ServerTargetCommand
Attila Molnar [Tue, 29 Mar 2016 10:32:16 +0000 (12:32 +0200)]
core_info Deduplicate code by inheriting some commands from ServerTargetCommand

8 years agocore_info Add class ServerTargetCommand
Attila Molnar [Tue, 29 Mar 2016 10:29:38 +0000 (12:29 +0200)]
core_info Add class ServerTargetCommand

8 years agoMerge pull request #1149 from SaberUK/master+sasl
Attila Molnar [Thu, 24 Mar 2016 09:57:11 +0000 (10:57 +0100)]
Merge pull request #1149 from SaberUK/master+sasl

Add support for SASL reauthentication.

8 years agoAdd support for SASL reauthentication.
Peter Powell [Sun, 28 Feb 2016 11:18:35 +0000 (11:18 +0000)]
Add support for SASL reauthentication.

8 years agoMerge pull request #1159 from SaberUK/master+configure
Attila Molnar [Thu, 24 Mar 2016 09:20:07 +0000 (10:20 +0100)]
Merge pull request #1159 from SaberUK/master+configure

Improvements to ./configure file generation.

8 years agoDon't prepend ":<nick>" to raw input log
Attila Molnar [Wed, 23 Mar 2016 15:17:17 +0000 (16:17 +0100)]
Don't prepend ":<nick>" to raw input log

8 years agoSimplify the configure cache file format.
Peter Powell [Tue, 22 Mar 2016 23:21:24 +0000 (23:21 +0000)]
Simplify the configure cache file format.

This prevents the need to implement escaping of values which was
a bug in the previous format.

8 years agoMove the configure cache to the .configure directory too.
Peter Powell [Tue, 22 Mar 2016 23:14:22 +0000 (23:14 +0000)]
Move the configure cache to the .configure directory too.

8 years agoWrite generated templates to the .configure directory.
Peter Powell [Tue, 22 Mar 2016 22:40:59 +0000 (22:40 +0000)]
Write generated templates to the .configure directory.

8 years agoFix a typo in parse_templates.
Peter Powell [Tue, 22 Mar 2016 22:15:53 +0000 (22:15 +0000)]
Fix a typo in parse_templates.

8 years agoExtract directory creation code to its own subroutine.
Peter Powell [Tue, 22 Mar 2016 22:14:35 +0000 (22:14 +0000)]
Extract directory creation code to its own subroutine.

8 years agoRemove now unused overload of User::SendText()
Attila Molnar [Tue, 22 Mar 2016 17:41:30 +0000 (18:41 +0100)]
Remove now unused overload of User::SendText()

8 years agoMerge branches 'master+check' and 'master+namedmodes'
Attila Molnar [Tue, 22 Mar 2016 17:38:17 +0000 (18:38 +0100)]
Merge branches 'master+check' and 'master+namedmodes'

8 years agom_namedmodes Switch to Numeric::ParamBuilder
Attila Molnar [Tue, 22 Mar 2016 15:46:15 +0000 (16:46 +0100)]
m_namedmodes Switch to Numeric::ParamBuilder

8 years agom_namedmodes Inherit command handler from SplitCommand
Attila Molnar [Tue, 22 Mar 2016 15:44:45 +0000 (16:44 +0100)]
m_namedmodes Inherit command handler from SplitCommand

Pass a LocalUser pointer to DisplayList()

8 years agoAdd Numeric::ParamBuilder
Attila Molnar [Tue, 22 Mar 2016 15:40:05 +0000 (16:40 +0100)]
Add Numeric::ParamBuilder

It builds numerics where the individual components are parameters of the numeric

8 years agom_check Move DumpExt() into CheckContext
Attila Molnar [Sat, 19 Mar 2016 15:33:23 +0000 (16:33 +0100)]
m_check Move DumpExt() into CheckContext

8 years agom_check Move DumpListMode() into CheckContext
Attila Molnar [Sat, 19 Mar 2016 15:33:00 +0000 (16:33 +0100)]
m_check Move DumpListMode() into CheckContext

8 years agom_check Refactor, move to the new RPL_CHECK numeric
Attila Molnar [Sat, 19 Mar 2016 15:32:25 +0000 (16:32 +0100)]
m_check Refactor, move to the new RPL_CHECK numeric

8 years agoFix oversights in the WriteNumeric() parameter conversion
Attila Molnar [Sat, 19 Mar 2016 15:20:01 +0000 (16:20 +0100)]
Fix oversights in the WriteNumeric() parameter conversion

8 years agoMerge branch 'master+chanwritenotice'
Attila Molnar [Sat, 5 Mar 2016 15:58:50 +0000 (16:58 +0100)]
Merge branch 'master+chanwritenotice'

8 years agoSend NOTICEs to local channel members with Channel::WriteNotice()
Attila Molnar [Sat, 5 Mar 2016 15:46:03 +0000 (16:46 +0100)]
Send NOTICEs to local channel members with Channel::WriteNotice()

8 years agoAdd Channel::WriteNotice()
Attila Molnar [Sat, 5 Mar 2016 15:41:24 +0000 (16:41 +0100)]
Add Channel::WriteNotice()

8 years agoMerge pull request #1150 from johanna-a/conname_extban
Attila Molnar [Fri, 4 Mar 2016 14:52:23 +0000 (15:52 +0100)]
Merge pull request #1150 from johanna-a/conname_extban

Adds classban module providing extban 'n' for connect class ban.

8 years agoAdds classban module providing extban 'n' for connect class ban.
Johanna A [Sun, 28 Feb 2016 14:22:29 +0000 (15:22 +0100)]
Adds classban module providing extban 'n' for connect class ban.

8 years agoMerge branch 'master+writeremotenotice'
Attila Molnar [Wed, 2 Mar 2016 14:20:21 +0000 (15:20 +0100)]
Merge branch 'master+writeremotenotice'

8 years agom_spanningtree Remove ModuleSpanningTree::RemoteMessage()
Attila Molnar [Tue, 1 Mar 2016 15:18:05 +0000 (16:18 +0100)]
m_spanningtree Remove ModuleSpanningTree::RemoteMessage()

This method is no longer used, replacement is User::WriteRemoteNotice()

8 years agoSend NOTICEs that can go to both local and remote users with User::WriteRemoteNotice()
Attila Molnar [Tue, 1 Mar 2016 15:17:14 +0000 (16:17 +0100)]
Send NOTICEs that can go to both local and remote users with User::WriteRemoteNotice()

8 years agoAdd User::WriteRemoteNotice()
Attila Molnar [Tue, 1 Mar 2016 15:15:59 +0000 (16:15 +0100)]
Add User::WriteRemoteNotice()

Sends a NOTICE from the local server to the user which can be local or remote

8 years agoMerge branch 'master+writenumeric-who'
Attila Molnar [Fri, 26 Feb 2016 15:31:05 +0000 (16:31 +0100)]
Merge branch 'master+writenumeric-who'