Merge branch 'insp3' into master.

This commit is contained in:
Sadie Powell 2022-01-03 15:14:36 +00:00
commit b96af051c2
50 changed files with 133 additions and 75 deletions

View File

@ -1608,25 +1608,28 @@
#<module name="opmoderated"> #<module name="opmoderated">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Password forwarding module: Forwards a password users can send on # Password forwarding module: Allows forwarding passwords to services to
# connect to the specified client below. The client is usually NickServ # automatically log users into their account. The password can either be
# and this module is usually used to authenticate users with NickServ # specified as the server password or as a second parameter to the /NICK
# using their connect password. # command.
#<module name="passforward"> #<module name="passforward">
<passforward <passforward
# nick: nick to forward connect passwords to.
nick="NickServ"
# forwardmsg: Message to send to users using a connect password. # nick: The nick of the service to forward passwords to.
# $nick will be the users' nick, $nickrequired will be the nick nick="NickServ"
# of where the password is going (the nick above).
# You can also use $user for the user ident string.
forwardmsg="NOTICE $nick :*** Forwarding PASS to $nickrequired"
# cmd: Command for the user to run when it receives a connect # forwardmsg: Message to send to users when forwarding their
# password. # password. You can use the following variables in this message:
cmd="SQUERY $nickrequired :IDENTIFY $pass"> #
# $nick The nickname of the authenticating user.
# $nickrequired The nickname of the service to forward to (see above).
# $pass The password to forward to services.
# $user The username (ident) of the authenticating user.
forwardmsg="NOTICE $nick :*** Forwarding password to $nickrequired"
# cmd: The message to send to forward passwords to services.
cmd="SQUERY $nickrequired :IDENTIFY $nick $pass">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Password hash module: Allows hashed passwords to be used. # Password hash module: Allows hashed passwords to be used.

View File

@ -13,11 +13,11 @@
<connect name="IRCCloud (IPv4)" <connect name="IRCCloud (IPv4)"
parent="IRCCloud" parent="IRCCloud"
allow="5.254.36.56/29 192.184.8.103 192.184.9.108 192.184.9.112 192.184.10.118 192.184.10.9" allow="5.254.36.56/29 5.254.36.104/29"
uniqueusername="yes"> uniqueusername="yes">
# This is not typically needed as each user has their own IPv6 but if you have # This is not typically needed as each user has their own IPv6 but if you have
# <cidr:ipv6clone> set to a value lower than 128 you will need to enable it. # <cidr:ipv6clone> set to a value lower than 128 you will need to enable it.
#<connect name="IRCCloud (IPv6)" #<connect name="IRCCloud (IPv6)"
# parent="IRCCloud" # parent="IRCCloud"
# allow="2001:67c:2f08::/48 2a03:5180:f::/62 2a03:5180:f:4::/63 2a03:5180:f:6::/64"> # allow="2a03:5180:f::/62 2a03:5180:f:4::/63 2a03:5180:f:6::/64">

View File

@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2018 Chris Novakovic <chrisnovakovic@users.noreply.github.com> * Copyright (C) 2018 Chris Novakovic
* Copyright (C) 2013-2014, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013-2014, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013 Daniel Vassdal <shutter@canternet.org> * Copyright (C) 2013 Daniel Vassdal <shutter@canternet.org>
* Copyright (C) 2012-2014, 2016-2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2012-2014, 2016-2021 Sadie Powell <sadie@witchery.services>

View File

@ -1,6 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2013, 2016-2017 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013, 2016-2017 Attila Molnar <attilamolnar@hush.com>
* *

View File

@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2015 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2015 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2020 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
* Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org> * Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
@ -36,6 +36,11 @@ inline AccountExtItem* GetAccountExtItem()
return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountname")); return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountname"));
} }
inline AccountExtItem* GetAccountIdExtItem()
{
return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountid"));
}
class AccountEventListener class AccountEventListener
: public Events::ModuleEventListener : public Events::ModuleEventListener
{ {

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2018-2019, 2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2018-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2015, 2018 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2015, 2018 Attila Molnar <attilamolnar@hush.com>
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
@ -106,4 +106,7 @@ class IRCv3::CapTag
, tagname(Tagname) , tagname(Tagname)
{ {
} }
/** Retrieves the underlying capability. */
const Cap::Capability& GetCap() const { return cap; }
}; };

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2019-2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2019-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2018 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2018 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
* *

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2017 Sadie Powell <sadie@witchery.services> * Copyright (C) 2017, 2021 Sadie Powell <sadie@witchery.services>
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public * redistribute it and/or modify it under the terms of the GNU General Public

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2013, 2016, 2018, 2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2016, 2018, 2020-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2014, 2016, 2018 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2014, 2016, 2018 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2017-2018 Sadie Powell <sadie@witchery.services> * Copyright (C) 2017-2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw> * Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw>
* Copyright (C) 2013-2014, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013-2014, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>

View File

@ -1,7 +1,6 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2013, 2017-2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013, 2016 Adam <Adam@anope.org> * Copyright (C) 2013, 2016 Adam <Adam@anope.org>
* Copyright (C) 2013, 2015 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013, 2015 Attila Molnar <attilamolnar@hush.com>

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2018, 2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2018, 2020-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2014, 2016, 2018 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2014, 2016, 2018 Attila Molnar <attilamolnar@hush.com>
* *

View File

@ -3,7 +3,7 @@
* *
* Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw> * Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw>
* Copyright (C) 2014, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2014, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013, 2016, 2018 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2016, 2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
* Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org> * Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
@ -29,7 +29,7 @@
#include "core_user.h" #include "core_user.h"
CommandNick::CommandNick(Module* parent) CommandNick::CommandNick(Module* parent)
: SplitCommand(parent, "NICK", 1, 1) : SplitCommand(parent, "NICK", 1)
{ {
works_before_reg = true; works_before_reg = true;
syntax = { "<newnick>" }; syntax = { "<newnick>" };

View File

@ -2,8 +2,8 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2018 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2012, 2014 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012, 2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -2,8 +2,8 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2018 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2012, 2014 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012, 2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org> * Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>

View File

@ -2,8 +2,8 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2018 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2012, 2014 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012, 2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org> * Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>

View File

@ -3,7 +3,7 @@
* *
* Copyright (C) 2021 Valentin Lorentz <progval+git@progval.net> * Copyright (C) 2021 Valentin Lorentz <progval+git@progval.net>
* Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2018 Chris Novakovic <chrisnovakovic@users.noreply.github.com> * Copyright (C) 2018 Chris Novakovic
* Copyright (C) 2013, 2017-2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013 Adam <Adam@anope.org> * Copyright (C) 2013 Adam <Adam@anope.org>
* Copyright (C) 2012-2014, 2016, 2018 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2014, 2016, 2018 Attila Molnar <attilamolnar@hush.com>

View File

@ -3,7 +3,7 @@
* *
* Copyright (C) 2020 Joel Sing <joel@sing.id.au> * Copyright (C) 2020 Joel Sing <joel@sing.id.au>
* Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2016-2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2016-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2014, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2014, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013-2016 Adam <Adam@anope.org> * Copyright (C) 2013-2016 Adam <Adam@anope.org>
* *

View File

@ -3,8 +3,8 @@
* *
* Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2014 Adam <Adam@anope.org> * Copyright (C) 2014 Adam <Adam@anope.org>
* Copyright (C) 2013-2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013-2014, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013, 2017-2018 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013 Daniel Vassdal <shutter@canternet.org> * Copyright (C) 2013 Daniel Vassdal <shutter@canternet.org>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2020-2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2020-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2016 Johanna A <johanna-a@users.noreply.github.com> * Copyright (C) 2016 Johanna A
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public * redistribute it and/or modify it under the terms of the GNU General Public

View File

@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2017-2018 Sadie Powell <sadie@witchery.services> * Copyright (C) 2017-2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2014, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2014, 2016 Attila Molnar <attilamolnar@hush.com>
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can

View File

@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2013-2014 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013-2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013, 2017-2018 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2010 Daniel De Graaf <danieldg@inspircd.org>
* *

View File

@ -13,7 +13,7 @@
* Copyright (C) 2008 John Brooks <special@inspircd.org> * Copyright (C) 2008 John Brooks <special@inspircd.org>
* Copyright (C) 2007-2008 Robin Burchell <robin+git@viroteck.net> * Copyright (C) 2007-2008 Robin Burchell <robin+git@viroteck.net>
* Copyright (C) 2007-2008 Dennis Friis <peavey@inspircd.org> * Copyright (C) 2007-2008 Dennis Friis <peavey@inspircd.org>
* Copyright (C) 2006 jamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7> * Copyright (C) 2006 jamie
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public * redistribute it and/or modify it under the terms of the GNU General Public

View File

@ -3,7 +3,7 @@
* *
* Copyright (C) 2019-2020 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2019-2020 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2018-2019 Sadie Powell <sadie@witchery.services> * Copyright (C) 2018-2019, 2021 Sadie Powell <sadie@witchery.services>
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public * redistribute it and/or modify it under the terms of the GNU General Public

View File

@ -4,9 +4,9 @@
* Copyright (C) 2021 Herman <GermanAizek@yandex.ru> * Copyright (C) 2021 Herman <GermanAizek@yandex.ru>
* Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2018 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2018 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2016 Johanna A <johanna-a@users.noreply.github.com> * Copyright (C) 2016 Johanna A
* Copyright (C) 2013-2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013-2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013, 2017, 2019-2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017, 2019-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org> * Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
* Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2018 Sadie Powell <sadie@witchery.services> * Copyright (C) 2018, 2020 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2018 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2018 Attila Molnar <attilamolnar@hush.com>
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
@ -19,6 +19,7 @@
#include "inspircd.h" #include "inspircd.h"
#include "modules/ctctags.h"
#include "modules/ircv3.h" #include "modules/ircv3.h"
#include "modules/account.h" #include "modules/account.h"
@ -45,16 +46,48 @@ class AccountTag final
} }
}; };
class AccountIdTag final
: public ClientProtocol::MessageTagProvider
{
private:
AccountTag& acctag;
CTCTags::CapReference ctctagcap;
public:
AccountIdTag(Module* mod, AccountTag& tag)
: ClientProtocol::MessageTagProvider(mod)
, acctag(tag)
, ctctagcap(mod)
{
}
void OnPopulateTags(ClientProtocol::Message& msg) override
{
const User* user = msg.GetSourceUser();
const AccountExtItem* accextitem = user ? GetAccountIdExtItem() : nullptr;
const std::string* accountid = accextitem ? accextitem->Get(user) : nullptr;
if (accountid)
msg.AddTag("inspircd.org/account-id", this, *accountid);
}
bool ShouldSendTag(LocalUser* user, const ClientProtocol::MessageTagData& tagdata) override
{
return acctag.GetCap().IsEnabled(user) && ctctagcap.IsEnabled(user);
}
};
class ModuleIRCv3AccountTag final class ModuleIRCv3AccountTag final
: public Module : public Module
{ {
private: private:
AccountTag tag; AccountTag tag;
AccountIdTag idtag;
public: public:
ModuleIRCv3AccountTag() ModuleIRCv3AccountTag()
: Module(VF_VENDOR, "Provides the IRCv3 account-tag client capability.") : Module(VF_VENDOR, "Provides the IRCv3 account-tag client capability.")
, tag(this) , tag(this)
, idtag(this, tag)
{ {
} }
}; };

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2018 A_D <A-UNDERSCORE-D@users.noreply.github.com> * Copyright (C) 2018 A_D
* Copyright (C) 2014 Daniel Vassdal <shutter@canternet.org> * Copyright (C) 2014 Daniel Vassdal <shutter@canternet.org>
* Copyright (C) 2013, 2017-2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2020 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2015 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2015 Attila Molnar <attilamolnar@hush.com>

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2020 Christos Triantafyllidis <ctria@users.noreply.github.com> * Copyright (C) 2020 Christos Triantafyllidis
* Copyright (C) 2018-2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2018-2020 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2014, 2018 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2014, 2018 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013-2014 Adam <Adam@anope.org> * Copyright (C) 2013-2014 Adam <Adam@anope.org>

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2013, 2017-2019 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2019, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2014, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2014, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2013, 2017 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2012 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -68,7 +68,7 @@ class ModuleOpModerated final
public: public:
ModuleOpModerated() ModuleOpModerated()
: Module(VF_VENDOR | VF_OPTCOMMON, "Implements opmoderated channel mode +U (non-voiced messages sent to ops) and extban 'u'.") : Module(VF_VENDOR | VF_OPTCOMMON, "Adds the ability for IRC gateways to forward the real IP address of users connecting through them.")
, CTCTags::EventListener(this) , CTCTags::EventListener(this)
, exemptionprov(this) , exemptionprov(this)
, extban(this, "opmoderated", 'u') , extban(this, "opmoderated", 'u')

View File

@ -2,11 +2,11 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2021 Herman <GermanAizek@yandex.ru> * Copyright (C) 2021 Herman <GermanAizek@yandex.ru>
* Copyright (C) 2020 satmd <satmd@users.noreply.github.com> * Copyright (C) 2020 satmd <satmd@satmd.de>
* Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw> * Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw>
* Copyright (C) 2017 Adam <Adam@anope.org> * Copyright (C) 2017 Adam <Adam@anope.org>
* Copyright (C) 2016 Sheogorath <sheogorath@shivering-isles.com> * Copyright (C) 2016 Sheogorath <sheogorath@shivering-isles.com>
* Copyright (C) 2013, 2017, 2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017, 2020-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013 Daniel Vassdal <shutter@canternet.org> * Copyright (C) 2013 Daniel Vassdal <shutter@canternet.org>
* Copyright (C) 2012-2015 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2015 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012 Shawn Smith <ShawnSmith0828@gmail.com> * Copyright (C) 2012 Shawn Smith <ShawnSmith0828@gmail.com>

View File

@ -3,7 +3,7 @@
* *
* Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2014 Googolplexed <googol@googolplexed.net> * Copyright (C) 2014 Googolplexed <googol@googolplexed.net>
* Copyright (C) 2013, 2018, 2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2018, 2020-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2014 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2012 Boleslaw Tokarski <boleslaw.tokarski@tieto.com> * Copyright (C) 2012 Boleslaw Tokarski <boleslaw.tokarski@tieto.com>
@ -33,7 +33,7 @@ class ModulePassForward final
public: public:
ModulePassForward() ModulePassForward()
: Module(VF_VENDOR, "Allows the /PASS password to be forwarded to a services pseudoclient such as NickServ.") : Module(VF_VENDOR, "Allows an account password to be forwarded to a services pseudoclient such as NickServ.")
{ {
} }
@ -41,11 +41,11 @@ class ModulePassForward final
{ {
auto tag = ServerInstance->Config->ConfValue("passforward"); auto tag = ServerInstance->Config->ConfValue("passforward");
nickrequired = tag->getString("nick", "NickServ"); nickrequired = tag->getString("nick", "NickServ");
forwardmsg = tag->getString("forwardmsg", "NOTICE $nick :*** Forwarding PASS to $nickrequired"); forwardmsg = tag->getString("forwardmsg", "NOTICE $nick :*** Forwarding password to $nickrequired");
forwardcmd = tag->getString("cmd", "SQUERY $nickrequired :IDENTIFY $pass", 1); forwardcmd = tag->getString("cmd", "SQUERY $nickrequired :IDENTIFY $nick $pass", 1);
} }
void FormatStr(std::string& result, const std::string& format, const LocalUser* user) void FormatStr(const LocalUser* user, const std::string& format, const std::string& pass, std::string& result)
{ {
for (unsigned int i = 0; i < format.length(); i++) for (unsigned int i = 0; i < format.length(); i++)
{ {
@ -69,7 +69,7 @@ class ModulePassForward final
} }
else if (!format.compare(i, 5, "$pass", 5)) else if (!format.compare(i, 5, "$pass", 5))
{ {
result.append(user->password); result.append(pass);
i += 4; i += 4;
} }
else else
@ -97,6 +97,17 @@ class ModulePassForward final
return; return;
} }
ForwardPass(user, user->password);
}
void OnPostCommand(Command* command, const CommandBase::Params& parameters, LocalUser* user, CmdResult result, bool loop) override
{
if (command->name == "NICK" && parameters.size() > 1)
ForwardPass(user, parameters[1]);
}
void ForwardPass(LocalUser* user, const std::string& pass)
{
if (!nickrequired.empty()) if (!nickrequired.empty())
{ {
/* Check if nick exists and is on a services server. */ /* Check if nick exists and is on a services server. */
@ -108,12 +119,12 @@ class ModulePassForward final
std::string tmp; std::string tmp;
if (!forwardmsg.empty()) if (!forwardmsg.empty())
{ {
FormatStr(tmp, forwardmsg, user); FormatStr(user, forwardmsg, pass, tmp);
ServerInstance->Parser.ProcessBuffer(user, tmp); ServerInstance->Parser.ProcessBuffer(user, tmp);
tmp.clear(); tmp.clear();
} }
FormatStr(tmp, forwardcmd, user); FormatStr(user, forwardcmd, pass, tmp);
ServerInstance->Parser.ProcessBuffer(user, tmp); ServerInstance->Parser.ProcessBuffer(user, tmp);
} }
}; };

View File

@ -2,10 +2,11 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2021 iwalkalone <iwalkalone69@gmail.com> * Copyright (C) 2021 iwalkalone <iwalkalone69@gmail.com>
* Copyright (C) 2021 David Schultz <me@zpld.me>
* Copyright (C) 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2018-2019 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2018-2019 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2018 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2018 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2017-2019 Sadie Powell <sadie@witchery.services> * Copyright (C) 2017-2019, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2015 James Lu <GLolol@overdrivenetworks.com> * Copyright (C) 2015 James Lu <GLolol@overdrivenetworks.com>
* Copyright (C) 2013-2015 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013-2015 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013 Daniel Vassdal <shutter@canternet.org> * Copyright (C) 2013 Daniel Vassdal <shutter@canternet.org>

View File

@ -7,7 +7,7 @@
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
* Copyright (C) 2007 Dennis Friis <peavey@inspircd.org> * Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
* Copyright (C) 2006 jamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7> * Copyright (C) 2006 jamie
* Copyright (C) 2005, 2007 Robin Burchell <robin+git@viroteck.net> * Copyright (C) 2005, 2007 Robin Burchell <robin+git@viroteck.net>
* Copyright (C) 2004, 2007, 2010 Craig Edwards <brain@inspircd.org> * Copyright (C) 2004, 2007, 2010 Craig Edwards <brain@inspircd.org>
* *

View File

@ -2,8 +2,8 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2013, 2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012, 2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2012 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2010 Craig Edwards <brain@inspircd.org> * Copyright (C) 2010 Craig Edwards <brain@inspircd.org>
* Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org> * Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
* Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -184,6 +184,7 @@ class ModuleServicesAccount final
SimpleUserMode regdeafmode; SimpleUserMode regdeafmode;
RegisteredChannel chanregmode; RegisteredChannel chanregmode;
RegisteredUser userregmode; RegisteredUser userregmode;
AccountExtItem accountid;
AccountExtItemImpl accountname; AccountExtItemImpl accountname;
AccountExtBan accountextban; AccountExtBan accountextban;
UnauthedExtBan unauthedextban; UnauthedExtBan unauthedextban;
@ -200,6 +201,7 @@ class ModuleServicesAccount final
, regdeafmode(this, "regdeaf", 'R') , regdeafmode(this, "regdeaf", 'R')
, chanregmode(this) , chanregmode(this)
, userregmode(this) , userregmode(this)
, accountid(this, "accountid", ExtensionType::USER)
, accountname(this) , accountname(this)
, accountextban(this, accountname) , accountextban(this, accountname)
, unauthedextban(this, accountname) , unauthedextban(this, accountname)

View File

@ -3,12 +3,13 @@
* *
* Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2017-2018 B00mX0r <b00mx0r@aureus.pw> * Copyright (C) 2017 B00mX0r <b00mx0r@aureus.pw>
* Copyright (C) 2013, 2017-2018, 2020-2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2018, 2020-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2013, 2015-2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2013, 2015-2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2012 Jens Voss <DukePyrolator@anope.org> * Copyright (C) 2012 Jens Voss <DukePyrolator@anope.org>
* Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org> * Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
* Copyright (C) 2009 John Brooks <special@inspircd.org>
* Copyright (C) 2009 Dennis Friis <peavey@inspircd.org> * Copyright (C) 2009 Dennis Friis <peavey@inspircd.org>
* Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
* Copyright (C) 2008-2010 Craig Edwards <brain@inspircd.org> * Copyright (C) 2008-2010 Craig Edwards <brain@inspircd.org>

View File

@ -3,7 +3,7 @@
* *
* Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2013-2016, 2018 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013-2016, 2018 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013, 2017-2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013 Adam <Adam@anope.org> * Copyright (C) 2013 Adam <Adam@anope.org>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2013, 2019-2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2019-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013, 2016 Adam <Adam@anope.org> * Copyright (C) 2013, 2016 Adam <Adam@anope.org>
* Copyright (C) 2012-2014, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2014, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2013 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013 Adam <Adam@anope.org> * Copyright (C) 2013 Adam <Adam@anope.org>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>

View File

@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2015 Daniel Vassdal <shutter@canternet.org> * Copyright (C) 2015 Daniel Vassdal <shutter@canternet.org>
* Copyright (C) 2013, 2017-2019 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2019, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2015 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2012-2015 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2021 Molly Miller <sysvinit@users.noreply.github.com> * Copyright (C) 2021 Molly Miller
* Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2013, 2017-2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2017-2021 Sadie Powell <sadie@witchery.services>
@ -281,7 +281,7 @@ class ModuleSSLInfo final
public: public:
ModuleSSLInfo() ModuleSSLInfo()
: Module(VF_VENDOR, "Adds user facing TLS information, various TLS configuration options, and the /SSLINFO command to look up TLS certificate information for other users.") : Module(VF_VENDOR, "Adds user facing TLS (SSL) information, various TLS (SSL) configuration options, and the /SSLINFO command to look up TLS (SSL) certificate information for other users.")
, WebIRC::EventListener(this) , WebIRC::EventListener(this)
, Whois::EventListener(this) , Whois::EventListener(this)
, Who::EventListener(this) , Who::EventListener(this)

View File

@ -165,7 +165,7 @@ class ModuleSSLModes final
public: public:
ModuleSSLModes() ModuleSSLModes()
: Module(VF_VENDOR, "Adds channel mode z (sslonly) which prevents users who are not connecting using TLS from joining the channel and user mode z (sslqueries) to prevent messages from non-TLS users.") : Module(VF_VENDOR, "Adds channel mode z (sslonly) which prevents users who are not connecting using TLS (SSL) from joining the channel and user mode z (sslqueries) to prevent messages from non-TLS (SSL) users.")
, CTCTags::EventListener(this) , CTCTags::EventListener(this)
, api(this) , api(this)
, sslm(this, api) , sslm(this, api)

View File

@ -3,9 +3,9 @@
* *
* Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions> * Copyright (C) 2020 Matt Schatz <genius3000@g3k.solutions>
* Copyright (C) 2019 Robby <robby@chatbelgie.be> * Copyright (C) 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2018 Sadie Powell <sadie@witchery.services> * Copyright (C) 2018, 2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2014 Adam <Adam@anope.org> * Copyright (C) 2014 Adam <Adam@anope.org>
* Copyright (C) 2013, 2015-2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013, 2016 Attila Molnar <attilamolnar@hush.com>
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public * redistribute it and/or modify it under the terms of the GNU General Public

View File

@ -1,7 +1,7 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2019 Sadie Powell <sadie@witchery.services> * Copyright (C) 2019, 2021 Sadie Powell <sadie@witchery.services>
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public * redistribute it and/or modify it under the terms of the GNU General Public

View File

@ -3,7 +3,7 @@
* *
* Copyright (C) 2019 nia <nia@netbsd.org> * Copyright (C) 2019 nia <nia@netbsd.org>
* Copyright (C) 2013-2014, 2016 Attila Molnar <attilamolnar@hush.com> * Copyright (C) 2013-2014, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2013, 2016-2017, 2020 Sadie Powell <sadie@witchery.services> * Copyright (C) 2013, 2016-2017, 2020-2021 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013 Adam <Adam@anope.org> * Copyright (C) 2013 Adam <Adam@anope.org>
* Copyright (C) 2012 Robby <robby@chatbelgie.be> * Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2012 ChrisTX <xpipe@hotmail.de> * Copyright (C) 2012 ChrisTX <xpipe@hotmail.de>

View File

@ -8,7 +8,7 @@
* Copyright (C) 2012 ChrisTX <xpipe@hotmail.de> * Copyright (C) 2012 ChrisTX <xpipe@hotmail.de>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
* Copyright (C) 2008, 2017 Robin Burchell <robin+git@viroteck.net> * Copyright (C) 2008, 2017 Robin Burchell <robin+git@viroteck.net>
* Copyright (C) 2007 burlex <burlex@e03df62e-2008-0410-955e-edbf42e46eb7> * Copyright (C) 2007 burlex
* Copyright (C) 2007 Dennis Friis <peavey@inspircd.org> * Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
* Copyright (C) 2006-2008, 2010 Craig Edwards <brain@inspircd.org> * Copyright (C) 2006-2008, 2010 Craig Edwards <brain@inspircd.org>
* *

View File

@ -1,7 +1,6 @@
/* /*
* InspIRCd -- Internet Relay Chat Daemon * InspIRCd -- Internet Relay Chat Daemon
* *
* Copyright (C) 2021 Herman <GermanAizek@yandex.ru>
* Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com> * Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
* Copyright (C) 2018 systocrat <systocrat@outlook.com> * Copyright (C) 2018 systocrat <systocrat@outlook.com>
* Copyright (C) 2018 Dylan Frank <b00mx0r@aureus.pw> * Copyright (C) 2018 Dylan Frank <b00mx0r@aureus.pw>

View File

@ -11,7 +11,7 @@
* Copyright (C) 2007-2009 Robin Burchell <robin+git@viroteck.net> * Copyright (C) 2007-2009 Robin Burchell <robin+git@viroteck.net>
* Copyright (C) 2007-2008 Craig Edwards <brain@inspircd.org> * Copyright (C) 2007-2008 Craig Edwards <brain@inspircd.org>
* Copyright (C) 2007, 2009 Dennis Friis <peavey@inspircd.org> * Copyright (C) 2007, 2009 Dennis Friis <peavey@inspircd.org>
* Copyright (C) 2007 burlex <burlex@e03df62e-2008-0410-955e-edbf42e46eb7> * Copyright (C) 2007 burlex
* *
* This file is part of InspIRCd. InspIRCd is free software: you can * This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public * redistribute it and/or modify it under the terms of the GNU General Public