Rename the services_account module to account.

This commit is contained in:
Sadie Powell 2022-10-16 23:24:44 +01:00
parent fbed3eca25
commit 1736775c76
5 changed files with 13 additions and 20 deletions

View File

@ -339,7 +339,7 @@
# NOTE: You must complete the signon prior to full connection. Currently,
# this is only possible by using SASL authentication; passforward
# and PRIVMSG NickServ happen after your final connect block has been found.
# Requires the services_account module to be loaded.
# Requires the account module to be loaded.
#requireaccount="yes"
# Alternate MOTD file for this connect class. The contents of this file are

View File

@ -53,6 +53,11 @@
# BBC BASIC keywords.
#<module name="abbreviation">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Account support module: Adds support for user accounts as well as
# several several modes relating to accounts.
#<module name="account">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Alias module: Allows you to define server-side command aliases.
#<module name="alias">
@ -2047,17 +2052,6 @@
# To use, SETIDLE must be in one of your oper class blocks.
#<module name="setidle">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Services support module: Adds several user modes such as +R and +M.
# This module implements the 'identified' state via account names,
# and is similar in operation to the way asuka and ircu handle services.
#
# Also of note is that this module implements two extbans:
# +b R: (stop matching account names from joining)
# +b U:n!u@h (blocks matching unregistered users)
#
#<module name="services_account">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Services integration module: Adds various features which enable
# integrating with a third-party services pseudoserver like Anope or

View File

@ -209,7 +209,7 @@ public:
}
};
class ModuleServicesAccount final
class ModuleAccount final
: public Module
, public CTCTags::EventListener
, public Who::EventListener
@ -226,8 +226,8 @@ private:
UnauthedExtBan unauthedextban;
public:
ModuleServicesAccount()
: Module(VF_VENDOR | VF_OPTCOMMON, "Adds various channel and user modes relating to services accounts.")
ModuleAccount()
: Module(VF_VENDOR | VF_OPTCOMMON, "Adds various channel and user modes relating to accounts.")
, CTCTags::EventListener(this)
, Who::EventListener(this)
, Whois::EventListener(this)
@ -242,7 +242,6 @@ public:
{
}
ModResult OnWhoLine(const Who::Request& request, LocalUser* source, User* user, Membership* memb, Numeric::Numeric& numeric) override
{
size_t flag_index;
@ -351,4 +350,4 @@ public:
}
};
MODULE_INIT(ModuleServicesAccount)
MODULE_INIT(ModuleAccount)

View File

@ -466,7 +466,7 @@ public:
void Prioritize() override
{
// Want to be after modules like silence or services_account
// Want to be after modules like account or silence
ServerInstance->Modules.SetPriority(this, I_OnUserPreMessage, PRIORITY_LAST);
}
};

View File

@ -424,8 +424,8 @@ public:
void init() override
{
if (!ServerInstance->Modules.Find("services_account") || !ServerInstance->Modules.Find("cap"))
ServerInstance->Logs.Normal(MODNAME, "WARNING: m_services_account and m_cap are not loaded! m_sasl will NOT function correctly until these two modules are loaded!");
if (!ServerInstance->Modules.Find("account") || !ServerInstance->Modules.Find("cap"))
ServerInstance->Logs.Normal(MODNAME, "WARNING: the cap and services modules are not loaded! The sasl module will NOT function correctly until these two modules are loaded!");
}
void ReadConfig(ConfigStatus& status) override