aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-16 23:24:44 +0100
committerGravatar Sadie Powell2022-10-18 10:59:57 +0100
commit1736775c766cddf9e1dc436aff6060bd8553c8c3 (patch)
tree4ee3a286930f57882e02f755c73f10f2230f8cc9 /src/modules
parentSplit out channel and user mode +r into a separate module. (diff)
Rename the services_account module to account.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_account.cpp (renamed from src/modules/m_services_account.cpp)9
-rw-r--r--src/modules/m_callerid.cpp2
-rw-r--r--src/modules/m_sasl.cpp4
3 files changed, 7 insertions, 8 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_account.cpp
index 78b040755..dd696f5fa 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_account.cpp
@@ -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)
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 4fc1c114e..215b2648d 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -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);
}
};
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp
index 73dd21c2a..159d960ed 100644
--- a/src/modules/m_sasl.cpp
+++ b/src/modules/m_sasl.cpp
@@ -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