aboutsummaryrefslogtreecommitdiffstats
path: root/modules/cap.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-02 20:59:41 +0000
committerGravatar Sadie Powell2026-03-02 21:09:27 +0000
commit7110535309675a6579c57900ef75498bfb2e0ce6 (patch)
treed419a876ee5534e5aef23f14efde5161d92a0126 /modules/cap.cpp
parentLoad the swhois module if a config contains the swhois_ext module. (diff)
Rename ServiceProvider::creator to service_creator and add GetSource.
Diffstat (limited to 'modules/cap.cpp')
-rw-r--r--modules/cap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/cap.cpp b/modules/cap.cpp
index c7d8b4273..f171d89a4 100644
--- a/modules/cap.cpp
+++ b/modules/cap.cpp
@@ -84,13 +84,13 @@ class Cap::ManagerImpl final
if (!(used & bit))
return bit;
}
- throw ModuleException(creator, "Too many caps");
+ throw ModuleException(this->service_creator, "Too many caps");
}
void OnReloadModuleSave(Module* mod, ReloadModule::CustomData& cd) override
{
ServerInstance->Logs.Debug(MODNAME, "OnReloadModuleSave()");
- if (mod == creator)
+ if (mod == this->service_creator)
return;
auto* capmoddata = new CapModData();
@@ -99,7 +99,7 @@ class Cap::ManagerImpl final
for (const auto& [_, cap] : caps)
{
// Only save users of caps that belong to the module being reloaded
- if (cap->creator != mod)
+ if (cap->service_creator != mod)
continue;
ServerInstance->Logs.Debug(MODNAME, "Module being reloaded implements cap {}, saving cap users", cap->GetName());