diff options
| author | 2023-02-20 20:07:44 +0000 | |
|---|---|---|
| committer | 2023-02-20 21:14:07 +0000 | |
| commit | 73da86e201eb92eb249499cbf70b812afdfdc855 (patch) | |
| tree | 63e72cf062d08abed6ca70898700023ff9f871a4 /src | |
| parent | Avoid 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.cpp | 13 |
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); } |
