1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 19:56:39 +02:00

Show the command name and not service name in the access denied log messages

This commit is contained in:
Adam
2013-12-31 15:31:56 -05:00
parent f21b40bfb4
commit 6124af68cc
+2 -2
View File
@@ -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;
}