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:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user