aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cap.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 23:48:09 +0000
committerGravatar Sadie Powell2023-01-24 00:12:57 +0000
commit206d31de85192353d03c74766e80513a87dc49b4 (patch)
tree24fdee802c85c29b66a04901147d019e92e30931 /src/modules/m_cap.cpp
parentConvert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. (diff)
downloadinspircd++-206d31de85192353d03c74766e80513a87dc49b4.tar.gz
inspircd++-206d31de85192353d03c74766e80513a87dc49b4.tar.bz2
inspircd++-206d31de85192353d03c74766e80513a87dc49b4.zip
Convert log calls to use fmtlib format strings
Diffstat (limited to 'src/modules/m_cap.cpp')
-rw-r--r--src/modules/m_cap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp
index 25b09b4b5..c5d969cf4 100644
--- a/src/modules/m_cap.cpp
+++ b/src/modules/m_cap.cpp
@@ -101,7 +101,7 @@ class Cap::ManagerImpl final
if (cap->creator != mod)
continue;
- ServerInstance->Logs.Debug(MODNAME, "Module being reloaded implements cap %s, saving cap users", cap->GetName().c_str());
+ ServerInstance->Logs.Debug(MODNAME, "Module being reloaded implements cap {}, saving cap users", cap->GetName());
capmoddata->caps.emplace_back(cap);
CapModData::Data& capdata = capmoddata->caps.back();
@@ -122,7 +122,7 @@ class Cap::ManagerImpl final
Capability* cap = ManagerImpl::Find(capdata.name);
if (!cap)
{
- ServerInstance->Logs.Debug(MODNAME, "Cap %s is no longer available after reload", capdata.name.c_str());
+ ServerInstance->Logs.Debug(MODNAME, "Cap {} is no longer available after reload", capdata.name);
continue;
}
@@ -132,7 +132,7 @@ class Cap::ManagerImpl final
auto* user = ServerInstance->Users.FindUUID(uuid);
if (!user)
{
- ServerInstance->Logs.Debug(MODNAME, "User %s is gone when trying to restore cap %s", uuid.c_str(), capdata.name.c_str());
+ ServerInstance->Logs.Debug(MODNAME, "User {} is gone when trying to restore cap {}", uuid, capdata.name);
continue;
}
@@ -165,7 +165,7 @@ public:
if (cap->IsRegistered())
return;
- ServerInstance->Logs.Debug(MODNAME, "Registering cap %s", cap->GetName().c_str());
+ ServerInstance->Logs.Debug(MODNAME, "Registering cap {}", cap->GetName());
cap->bit = AllocateBit();
cap->extitem = &capext;
caps.emplace(cap->GetName(), cap);
@@ -180,7 +180,7 @@ public:
if (!cap->IsRegistered())
return;
- ServerInstance->Logs.Debug(MODNAME, "Unregistering cap %s", cap->GetName().c_str());
+ ServerInstance->Logs.Debug(MODNAME, "Unregistering cap {}", cap->GetName());
// Fire the event first so modules can still see who is using the cap which is being unregistered
evprov.Call(&Cap::EventListener::OnCapAddDel, cap, false);
@@ -204,7 +204,7 @@ public:
void NotifyValueChange(Capability* cap) override
{
- ServerInstance->Logs.Debug(MODNAME, "Cap %s changed value", cap->GetName().c_str());
+ ServerInstance->Logs.Debug(MODNAME, "Cap {} changed value", cap->GetName());
evprov.Call(&Cap::EventListener::OnCapValueChange, cap);
}