From 6124af68cc10f22e98988c865f8b8270dfcda1ff Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 31 Dec 2013 15:31:56 -0500 Subject: [PATCH] Show the command name and not service name in the access denied log messages --- src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index 05c6e5f32..53ab59815 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -244,7 +244,7 @@ void Command::Run(CommandSource &source, const Anope::string &message) { source.Reply(NICK_IDENTIFY_REQUIRED); if (source.GetUser()) - Log(LOG_NORMAL, "access_denied", source.service) << "Access denied for unregistered user " << source.GetUser()->GetMask() << " with command " << c->name; + Log(LOG_NORMAL, "access_denied_unreg", source.service) << "Access denied for unregistered user " << source.GetUser()->GetMask() << " with command " << it->first; return; } @@ -276,7 +276,7 @@ void Command::Run(CommandSource &source, const Anope::string &message) { source.Reply(ACCESS_DENIED); if (source.GetUser()) - Log(LOG_NORMAL, "access_denied", source.service) << "Access denied for user " << source.GetUser()->GetMask() << " with command " << c->name; + Log(LOG_NORMAL, "access_denied", source.service) << "Access denied for user " << source.GetUser()->GetMask() << " with command " << it->first; return; }