diff options
author | Adam <Adam@anope.org> | 2013-12-31 15:31:56 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-12-31 15:31:56 -0500 |
commit | 6124af68cc10f22e98988c865f8b8270dfcda1ff (patch) | |
tree | fd36665aa87ac6f2050f11ec2e92eb04270689c1 | |
parent | f21b40bfb40ec1b2ceb78d548fc95397f2d1fc3e (diff) |
Show the command name and not service name in the access denied log messages
-rw-r--r-- | src/command.cpp | 4 |
1 files 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; } |