From 73da86e201eb92eb249499cbf70b812afdfdc855 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Feb 2023 20:07:44 +0000 Subject: Improve the log messages when cloaking users. --- src/modules/m_cloak.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/modules/m_cloak.cpp') 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); } -- cgit v1.3.1-10-gc9f91