]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
8 years agoMerge branch 'master+numericbuilder'
Attila Molnar [Sun, 3 Jan 2016 13:50:25 +0000 (14:50 +0100)]
Merge branch 'master+numericbuilder'

8 years agocore_whois Switch to Numeric::Builder
Attila Molnar [Wed, 30 Dec 2015 12:41:20 +0000 (13:41 +0100)]
core_whois Switch to Numeric::Builder

8 years agocmd_names Switch to Numeric::Builder
Attila Molnar [Wed, 30 Dec 2015 12:34:33 +0000 (13:34 +0100)]
cmd_names Switch to Numeric::Builder

8 years agocmd_names Inherit handler from SplitCommand
Attila Molnar [Wed, 30 Dec 2015 12:28:49 +0000 (13:28 +0100)]
cmd_names Inherit handler from SplitCommand

8 years agocore_ison Switch to Numeric::Builder
Attila Molnar [Wed, 30 Dec 2015 12:27:02 +0000 (13:27 +0100)]
core_ison Switch to Numeric::Builder

8 years agocore_ison Inherit handler from SplitCommand
Attila Molnar [Wed, 30 Dec 2015 12:23:42 +0000 (13:23 +0100)]
core_ison Inherit handler from SplitCommand

8 years agocore_ison Simplify handler
Attila Molnar [Wed, 30 Dec 2015 12:22:01 +0000 (13:22 +0100)]
core_ison Simplify handler

8 years agoAdd Numeric::Builder
Attila Molnar [Wed, 30 Dec 2015 12:20:21 +0000 (13:20 +0100)]
Add Numeric::Builder

8 years agoConvert remaining NOTICEs implemented using WriteServ() to WriteNotice()
Attila Molnar [Tue, 29 Dec 2015 11:45:02 +0000 (12:45 +0100)]
Convert remaining NOTICEs implemented using WriteServ() to WriteNotice()

8 years agoFix InspIRCd::StripColor() stripping characters that shouldn't be stripped
Attila Molnar [Tue, 29 Dec 2015 11:40:20 +0000 (12:40 +0100)]
Fix InspIRCd::StripColor() stripping characters that shouldn't be stripped

8 years agocmd_part Send ERR_NOTONCHANNEL if the user is not on the channel
Attila Molnar [Mon, 28 Dec 2015 16:29:00 +0000 (17:29 +0100)]
cmd_part Send ERR_NOTONCHANNEL if the user is not on the channel

Fixes issue #1117 reported by @ProgVal

8 years agoReturn true from Channel::PartUser() if the user was on the channel
Attila Molnar [Mon, 28 Dec 2015 16:27:40 +0000 (17:27 +0100)]
Return true from Channel::PartUser() if the user was on the channel

8 years agoInvert if in Channel::PartUser()
Attila Molnar [Mon, 28 Dec 2015 16:25:30 +0000 (17:25 +0100)]
Invert if in Channel::PartUser()

8 years agoFix some whitespace issues
Attila Molnar [Mon, 28 Dec 2015 15:59:03 +0000 (16:59 +0100)]
Fix some whitespace issues

8 years agom_cap Fix incorrect syntax of empty CAP LIST reply
Attila Molnar [Mon, 28 Dec 2015 15:50:49 +0000 (16:50 +0100)]
m_cap Fix incorrect syntax of empty CAP LIST reply

Fixes issue #1120 reported by @ProgVal

8 years agom_xline_db Don't flush database when an xline expires
Attila Molnar [Fri, 18 Dec 2015 08:35:39 +0000 (09:35 +0100)]
m_xline_db Don't flush database when an xline expires

8 years agoStrip all control codes except \001 in InspIRCd::StripColor()
Attila Molnar [Tue, 8 Dec 2015 15:32:50 +0000 (16:32 +0100)]
Strip all control codes except \001 in InspIRCd::StripColor()

Fixes issue #1100 reported by @uecasm

8 years agoDeduplicate code in InspIRCd::FindNick()
Attila Molnar [Mon, 7 Dec 2015 09:19:02 +0000 (10:19 +0100)]
Deduplicate code in InspIRCd::FindNick()

8 years agoRemove some IS_SERVER() checks
Attila Molnar [Mon, 7 Dec 2015 09:17:49 +0000 (10:17 +0100)]
Remove some IS_SERVER() checks

- InspIRCd::FindUUID() and FindNick() no longer return FakeUsers so checking the user returned from those methods is needless
- m_dccallow is calling FindNickOnly() so it had the check needlessly

8 years agoDo not insert FakeUsers into UserManager::uuidlist
Attila Molnar [Mon, 7 Dec 2015 09:11:09 +0000 (10:11 +0100)]
Do not insert FakeUsers into UserManager::uuidlist

Inserting them causes FindUUID() and FindNick() to return server users which is not what modules want

8 years agom_spanningtree Try FindServerID() first if the prefix looks like a sid in TreeSocket...
Attila Molnar [Mon, 7 Dec 2015 09:07:03 +0000 (10:07 +0100)]
m_spanningtree Try FindServerID() first if the prefix looks like a sid in TreeSocket::FindSource()

8 years agom_spanningtree Change allocation of ModuleSpanningTree::commands to be physically...
Attila Molnar [Sun, 6 Dec 2015 11:19:06 +0000 (12:19 +0100)]
m_spanningtree Change allocation of ModuleSpanningTree::commands to be physically part of the object containing it

8 years agom_spanningtree Implement ServerCommand::RegisterService()
Attila Molnar [Sun, 6 Dec 2015 11:16:37 +0000 (12:16 +0100)]
m_spanningtree Implement ServerCommand::RegisterService()

8 years agoMerge branch 'master+echomessage-invitenotify'
Attila Molnar [Sun, 6 Dec 2015 11:01:02 +0000 (12:01 +0100)]
Merge branch 'master+echomessage-invitenotify'

8 years agoAdd m_ircv3_invitenotify which implements the IRCv3.2 invite-notify extension
Attila Molnar [Sun, 6 Dec 2015 10:30:13 +0000 (11:30 +0100)]
Add m_ircv3_invitenotify which implements the IRCv3.2 invite-notify extension

8 years agoAdd minimum channel rank and exception list parameters to the OnUserInvite hook
Attila Molnar [Sun, 6 Dec 2015 10:24:39 +0000 (11:24 +0100)]
Add minimum channel rank and exception list parameters to the OnUserInvite hook

8 years agocmd_invite Fire the OnUserInvite event before announcing the invite
Attila Molnar [Sun, 6 Dec 2015 10:20:45 +0000 (11:20 +0100)]
cmd_invite Fire the OnUserInvite event before announcing the invite

8 years agocmd_invite Extend scope of the prefix character variable
Attila Molnar [Sun, 6 Dec 2015 10:20:00 +0000 (11:20 +0100)]
cmd_invite Extend scope of the prefix character variable

8 years agoAdd m_ircv3_echomessage which implements the IRCv3.2 echo-message extension
Attila Molnar [Sun, 6 Dec 2015 10:14:17 +0000 (11:14 +0100)]
Add m_ircv3_echomessage which implements the IRCv3.2 echo-message extension

8 years agoRemove <options:ircumsgprefix> entirely
Attila Molnar [Sun, 6 Dec 2015 10:09:03 +0000 (11:09 +0100)]
Remove <options:ircumsgprefix> entirely

8 years agoMerge branch 'master+cap'
Attila Molnar [Sun, 6 Dec 2015 10:00:12 +0000 (11:00 +0100)]
Merge branch 'master+cap'

8 years agoAdd m_ircv3_chghost which implements the IRCv3.2 chghost extension
Attila Molnar [Sat, 5 Dec 2015 15:55:09 +0000 (16:55 +0100)]
Add m_ircv3_chghost which implements the IRCv3.2 chghost extension

8 years agom_ircv3 Make WriteNeighborsWithCap() available for use in other modules
Attila Molnar [Sat, 5 Dec 2015 15:47:41 +0000 (16:47 +0100)]
m_ircv3 Make WriteNeighborsWithCap() available for use in other modules

8 years agom_cap Make Capability objects compatible with dynamic_references, add Cap::Reference
Attila Molnar [Sat, 5 Dec 2015 15:42:17 +0000 (16:42 +0100)]
m_cap Make Capability objects compatible with dynamic_references, add Cap::Reference

8 years agoAdd m_ircv3_capnotify which implements the IRCv3.2 cap-notify extension
Attila Molnar [Sat, 5 Dec 2015 15:38:51 +0000 (16:38 +0100)]
Add m_ircv3_capnotify which implements the IRCv3.2 cap-notify extension

8 years agom_cap Save and restore the cap state of a module when it is reloaded
Attila Molnar [Sat, 5 Dec 2015 15:24:12 +0000 (16:24 +0100)]
m_cap Save and restore the cap state of a module when it is reloaded

8 years agom_cap Specialize extension item
Attila Molnar [Sat, 5 Dec 2015 15:16:49 +0000 (16:16 +0100)]
m_cap Specialize extension item

8 years agom_sasl Advertise SASL mechanism list to supporting clients
Attila Molnar [Sat, 5 Dec 2015 15:01:30 +0000 (16:01 +0100)]
m_sasl Advertise SASL mechanism list to supporting clients

8 years agom_cap Provide the OnCapValueChange event and add Cap::Manager::NotifyValueChange()
Attila Molnar [Sat, 5 Dec 2015 14:58:48 +0000 (15:58 +0100)]
m_cap Provide the OnCapValueChange event and add Cap::Manager::NotifyValueChange()

8 years agom_cap Provide the OnCapAddDel() event
Attila Molnar [Sat, 5 Dec 2015 14:57:00 +0000 (15:57 +0100)]
m_cap Provide the OnCapAddDel() event

8 years agom_cap Add Capability::GetCapValue(), list capabilities with values
Attila Molnar [Sat, 5 Dec 2015 14:50:07 +0000 (15:50 +0100)]
m_cap Add Capability::GetCapValue(), list capabilities with values

8 years agom_cap Reject CAP CLEAR from clients newer than 3.1
Attila Molnar [Sat, 5 Dec 2015 14:45:59 +0000 (15:45 +0100)]
m_cap Reject CAP CLEAR from clients newer than 3.1

8 years agom_cap Learn the supported capability negotiation protocol of a client from CAP LS
Attila Molnar [Sat, 5 Dec 2015 14:45:20 +0000 (15:45 +0100)]
m_cap Learn the supported capability negotiation protocol of a client from CAP LS

Let modules implementing caps query this information

8 years agom_cap Add Capability::OnList() hook
Attila Molnar [Sat, 5 Dec 2015 14:42:04 +0000 (15:42 +0100)]
m_cap Add Capability::OnList() hook

8 years agom_sasl Create SASLCap which subclasses Cap::Capability and implements OnRequest()
Attila Molnar [Sat, 5 Dec 2015 14:39:52 +0000 (15:39 +0100)]
m_sasl Create SASLCap which subclasses Cap::Capability and implements OnRequest()

8 years agom_cap Add Capability::OnRequest() hook
Attila Molnar [Sat, 5 Dec 2015 14:35:05 +0000 (15:35 +0100)]
m_cap Add Capability::OnRequest() hook

8 years agoAdd rewritten m_cap module
Attila Molnar [Sat, 5 Dec 2015 14:29:01 +0000 (15:29 +0100)]
Add rewritten m_cap module

- Caps are now managed by m_cap
- Each cap uses one bit in an extension item shared with other caps

8 years agom_sasl Enforce usage of uuids in server-to-server SASL command
Attila Molnar [Sat, 5 Dec 2015 14:04:29 +0000 (15:04 +0100)]
m_sasl Enforce usage of uuids in server-to-server SASL command

8 years agoNuke m_cap
Attila Molnar [Sat, 5 Dec 2015 14:04:00 +0000 (15:04 +0100)]
Nuke m_cap

8 years agom_ircv3 Change signature of WriteNeighboursWithExt to accept a cap, rename
Attila Molnar [Sat, 5 Dec 2015 14:02:20 +0000 (15:02 +0100)]
m_ircv3 Change signature of WriteNeighboursWithExt to accept a cap, rename

8 years agoMerge branch 'master+serviceinit'
Attila Molnar [Wed, 2 Dec 2015 12:30:24 +0000 (13:30 +0100)]
Merge branch 'master+serviceinit'

8 years agoMerge branch 'master+reloadmod'
Attila Molnar [Tue, 1 Dec 2015 11:23:50 +0000 (12:23 +0100)]
Merge branch 'master+reloadmod'

8 years agoMerge branch 'master+whowas-purge-empty'
Attila Molnar [Tue, 1 Dec 2015 11:21:21 +0000 (12:21 +0100)]
Merge branch 'master+whowas-purge-empty'

8 years agocore_reloadmodule Allow modules to handle reload failures of other mods
Attila Molnar [Thu, 26 Nov 2015 14:14:07 +0000 (15:14 +0100)]
core_reloadmodule Allow modules to handle reload failures of other mods

8 years agocore_reloadmodule Allow modules to save and restore their own data when reloading...
Attila Molnar [Thu, 26 Nov 2015 14:10:00 +0000 (15:10 +0100)]
core_reloadmodule Allow modules to save and restore their own data when reloading another mod

8 years agocore_reloadmodule Save and restore module state (modes, extensions) on reload
Attila Molnar [Thu, 26 Nov 2015 13:58:18 +0000 (14:58 +0100)]
core_reloadmodule Save and restore module state (modes, extensions) on reload

8 years agoAdd LocalIntExt and LocalStringExt::unserialize() for non-FORMAT_NETWORK
Attila Molnar [Thu, 26 Nov 2015 12:53:01 +0000 (13:53 +0100)]
Add LocalIntExt and LocalStringExt::unserialize() for non-FORMAT_NETWORK

8 years agoFix FORMAT_INTERNAL handling in LocalIntExt::serialize() and LocalStringExt::serialize()
Attila Molnar [Thu, 26 Nov 2015 12:50:28 +0000 (13:50 +0100)]
Fix FORMAT_INTERNAL handling in LocalIntExt::serialize() and LocalStringExt::serialize()

8 years agoAdd ExtensionManager::GetExts()
Attila Molnar [Thu, 26 Nov 2015 12:40:44 +0000 (13:40 +0100)]
Add ExtensionManager::GetExts()

8 years agoAdd typedef ExtensionManager::ExtMap
Attila Molnar [Thu, 26 Nov 2015 12:39:56 +0000 (13:39 +0100)]
Add typedef ExtensionManager::ExtMap

8 years agom_services_account Handle FORMAT_INTERNAL when unserializing the accountname
Attila Molnar [Thu, 26 Nov 2015 12:38:20 +0000 (13:38 +0100)]
m_services_account Handle FORMAT_INTERNAL when unserializing the accountname

Skip sending the numeric and firing the OnAccountChange event

8 years agoHandle module reloading in core_reloadmodule entirely
Attila Molnar [Thu, 26 Nov 2015 12:36:44 +0000 (13:36 +0100)]
Handle module reloading in core_reloadmodule entirely

8 years agoAdd SERVICE_CUSTOM for services managed by a module
Attila Molnar [Mon, 23 Nov 2015 11:52:24 +0000 (12:52 +0100)]
Add SERVICE_CUSTOM for services managed by a module

8 years agoImplement ExtensionItem::RegisterService()
Attila Molnar [Mon, 23 Nov 2015 11:52:03 +0000 (12:52 +0100)]
Implement ExtensionItem::RegisterService()

8 years agoImplement ModeHandler::RegisterService()
Attila Molnar [Mon, 23 Nov 2015 11:51:00 +0000 (12:51 +0100)]
Implement ModeHandler::RegisterService()

8 years agoImplement Command::RegisterService()
Attila Molnar [Mon, 23 Nov 2015 11:50:35 +0000 (12:50 +0100)]
Implement Command::RegisterService()

8 years agoAdd ServiceProvider::RegisterService(), call it from ModuleManager::AddService()
Attila Molnar [Mon, 23 Nov 2015 11:50:02 +0000 (12:50 +0100)]
Add ServiceProvider::RegisterService(), call it from ModuleManager::AddService()

8 years agoExtract code that manipulates the ModuleManager::DataProviders map into methods
Attila Molnar [Mon, 23 Nov 2015 11:46:59 +0000 (12:46 +0100)]
Extract code that manipulates the ModuleManager::DataProviders map into methods

8 years agocore_whowas Purge nicks as soon as they no longer have any entries
Attila Molnar [Mon, 23 Nov 2015 10:42:49 +0000 (11:42 +0100)]
core_whowas Purge nicks as soon as they no longer have any entries

8 years agocore_whowas Add WhoWas::Manager::PurgeNick()
Attila Molnar [Mon, 23 Nov 2015 10:37:26 +0000 (11:37 +0100)]
core_whowas Add WhoWas::Manager::PurgeNick()

8 years agocore_whowas Remove dead code
Attila Molnar [Mon, 23 Nov 2015 10:22:03 +0000 (11:22 +0100)]
core_whowas Remove dead code

8 years agoRefuse to link modules to the core binary in dynamic builds
Attila Molnar [Mon, 16 Nov 2015 09:26:27 +0000 (10:26 +0100)]
Refuse to link modules to the core binary in dynamic builds

Fixes issue #912

8 years agoMerge pull request #1106 from SaberUK/master+purge-pkg-path
Attila Molnar [Mon, 16 Nov 2015 09:14:55 +0000 (10:14 +0100)]
Merge pull request #1106 from SaberUK/master+purge-pkg-path

Remove the PKG_CONFIG_PATH extension code from the build system.

8 years agoMerge pull request #1103 from rburchell/master-fix-info
Attila Molnar [Sun, 15 Nov 2015 17:49:06 +0000 (18:49 +0100)]
Merge pull request #1103 from rburchell/master-fix-info

Some updates to INFO.

8 years agoMerge branch 'master+gnutlsprio'
Attila Molnar [Thu, 12 Nov 2015 12:45:57 +0000 (13:45 +0100)]
Merge branch 'master+gnutlsprio'

8 years agoRemove the PKG_CONFIG_PATH extension code from the build system.
Peter Powell [Thu, 12 Nov 2015 00:21:31 +0000 (00:21 +0000)]
Remove the PKG_CONFIG_PATH extension code from the build system.

8 years agom_ssl_gnutls Disable SSL v3 and when acting as a server enforce our cipher preference...
Attila Molnar [Wed, 11 Nov 2015 09:51:00 +0000 (10:51 +0100)]
m_ssl_gnutls Disable SSL v3 and when acting as a server enforce our cipher preferences by default

8 years agom_ssl_gnutls Strip unrecognized tokens from the priority string if configured to...
Attila Molnar [Wed, 11 Nov 2015 09:49:12 +0000 (10:49 +0100)]
m_ssl_gnutls Strip unrecognized tokens from the priority string if configured to do so or when using the default

8 years agom_ssl_gnutls Add GnuTLS::Priority::GetDefault()
Attila Molnar [Wed, 11 Nov 2015 09:38:28 +0000 (10:38 +0100)]
m_ssl_gnutls Add GnuTLS::Priority::GetDefault()

8 years agom_ssl_gnutls Remove DH parameter generation
Attila Molnar [Tue, 10 Nov 2015 16:33:29 +0000 (17:33 +0100)]
m_ssl_gnutls Remove DH parameter generation

Generating DH params like this blocked the main thread, significantly slowing down startup and it made /rehash ssl freeze the server until the generation finished. External tools such as our genssl should be used to generate DH params.

8 years agom_ssl_openssl Disable compression and SSL v3 by default
Attila Molnar [Tue, 10 Nov 2015 16:25:16 +0000 (17:25 +0100)]
m_ssl_openssl Disable compression and SSL v3 by default

8 years agom_ssl_openssl Add workaround for a memory leak in OpenSSL
Attila Molnar [Tue, 10 Nov 2015 16:25:02 +0000 (17:25 +0100)]
m_ssl_openssl Add workaround for a memory leak in OpenSSL

8 years agoMerge branch 'master+alreadysent'
Attila Molnar [Tue, 10 Nov 2015 16:20:23 +0000 (17:20 +0100)]
Merge branch 'master+alreadysent'

8 years agoinspircd: Don't list individual authors on startup.
Robin Burchell [Mon, 9 Nov 2015 20:41:21 +0000 (21:41 +0100)]
inspircd: Don't list individual authors on startup.

We already keep track of this in /INFO, so point there instead.

8 years agoinfo: Move ChrisTX and Shawn to former contributors section.
Robin Burchell [Fri, 9 Oct 2015 19:52:50 +0000 (21:52 +0200)]
info: Move ChrisTX and Shawn to former contributors section.

8 years agoinfo: Update my copyright since I've touched this rather extensively.
Robin Burchell [Mon, 21 Sep 2015 02:24:54 +0000 (04:24 +0200)]
info: Update my copyright since I've touched this rather extensively.

8 years agoinfo: Move SaberUK to Core Developers.
Robin Burchell [Mon, 21 Sep 2015 02:24:11 +0000 (04:24 +0200)]
info: Move SaberUK to Core Developers.

Reflects reality, he's done a fair chunk of work. :)

8 years agoinfo: Reflect reality, and move everyone who hasn't committed since 2010 to "Former...
Robin Burchell [Mon, 21 Sep 2015 02:22:17 +0000 (04:22 +0200)]
info: Reflect reality, and move everyone who hasn't committed since 2010 to "Former Developers"

Self-explanatory, I hope.

8 years agoinfo: Merge "Regular Contributors" and "Other Contributors" into "Active Contributors"
Robin Burchell [Mon, 21 Sep 2015 02:16:24 +0000 (04:16 +0200)]
info: Merge "Regular Contributors" and "Other Contributors" into "Active Contributors"

Neither of the two other titles were really informative, and this now gels with
"Former Contributors".

8 years agoinfo: Remove searchirc.com (now defunct), change irc-junkie credits to Asmo.
Robin Burchell [Mon, 21 Sep 2015 02:14:56 +0000 (04:14 +0200)]
info: Remove searchirc.com (now defunct), change irc-junkie credits to Asmo.

Asmo was the guy who deserves thanks, not the site, per-se.

8 years agoinfo: Move the early three of us to a "founding developers" section.
Robin Burchell [Mon, 21 Sep 2015 02:13:14 +0000 (04:13 +0200)]
info: Move the early three of us to a "founding developers" section.

Reflecting the reality that we are of some kind of importance, even if we aren't
really doing much nowdays except sipping cocktails on the beach.

8 years agoinfo: Move jackmcbarn from developers back to contributors.
Robin Burchell [Mon, 21 Sep 2015 02:09:35 +0000 (04:09 +0200)]
info: Move jackmcbarn from developers back to contributors.

His last contribution was moving his name here, which doesn't seem to quite gel.

8 years agoRemove UserManager::GarbageCollect()
Attila Molnar [Tue, 3 Nov 2015 12:16:19 +0000 (13:16 +0100)]
Remove UserManager::GarbageCollect()

8 years agoMove already sent id rollover handling and static LocalUser::already_sent_id into...
Attila Molnar [Tue, 3 Nov 2015 12:13:00 +0000 (13:13 +0100)]
Move already sent id rollover handling and static LocalUser::already_sent_id into UserManager

8 years agoAdd UserManager::NextAlreadySentId() and convert all code to use it
Attila Molnar [Tue, 3 Nov 2015 12:08:21 +0000 (13:08 +0100)]
Add UserManager::NextAlreadySentId() and convert all code to use it

8 years agoMerge branch 'master+invite'
Attila Molnar [Tue, 3 Nov 2015 11:40:24 +0000 (12:40 +0100)]
Merge branch 'master+invite'

8 years agocore_channel Implement invite (un)serialization
Attila Molnar [Mon, 2 Nov 2015 12:40:15 +0000 (13:40 +0100)]
core_channel Implement invite (un)serialization

8 years agoRewrite invite system
Attila Molnar [Mon, 2 Nov 2015 12:28:55 +0000 (13:28 +0100)]
Rewrite invite system

- Moved out of core, now lives entirely in core_channel
- Accessible using the provided API after including the appropriate header
- Invites are stored in an extension attached to LocalUser/Channel objects, they no longer need special handling when destroying these objects or when lowering TS
- Expiration of timed invites are implemented using Timers
- When creating a new invite let a non-timed invite override a timed one

8 years agoMove ServerConfig::InvBypassModes into core_channel
Attila Molnar [Mon, 2 Nov 2015 11:38:14 +0000 (12:38 +0100)]
Move ServerConfig::InvBypassModes into core_channel

8 years agoMove handling of <options:invitebypassmodes> into core_channel
Attila Molnar [Mon, 2 Nov 2015 11:32:20 +0000 (12:32 +0100)]
Move handling of <options:invitebypassmodes> into core_channel