aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-02-20 20:07:44 +0000
committerGravatar Sadie Powell2023-02-20 21:14:07 +0000
commit73da86e201eb92eb249499cbf70b812afdfdc855 (patch)
tree63e72cf062d08abed6ca70898700023ff9f871a4 /src
parentAvoid setting -x+x when a reset cloak has not changed. (diff)
Improve the log messages when cloaking users.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cloak.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/modules/m_cloak.cpp b/src/modules/m_cloak.cpp
index b6180419e..1e55fad5f 100644
--- a/src/modules/m_cloak.cpp
+++ b/src/modules/m_cloak.cpp
@@ -115,11 +115,18 @@ public:
{
const std::string cloak = cloakmethod->Generate(user);
if (!cloak.empty())
+ {
cloaks->push_back(cloak);
- ServerInstance->Logs.Debug(MODNAME, "Cloaked {} ({}/{}) as {} using the {} method.",
- user->uuid, user->GetAddress(), user->GetRealHost(),
- cloak, cloakmethod->GetName());
+ ServerInstance->Logs.Debug(MODNAME, "Cloaked {} ({}) [{}] as {} using the {} method.",
+ user->uuid, user->GetAddress(), user->GetRealHost(), cloak,
+ cloakmethod->GetName());
+ }
+ else
+ {
+ ServerInstance->Logs.Debug(MODNAME, "Unable to cloak {} ({}) [{}] using the {} method.",
+ user->uuid, user->GetAddress(), user->GetRealHost(), cloakmethod->GetName());
+ }
}
ext.Set(user, cloaks);
}