mirror of
https://github.com/anope/anope.git
synced 2026-07-05 15:03:13 +02:00
Added a command:permission setting
This commit is contained in:
@@ -46,7 +46,7 @@ class AsynchCommandMutex : public CommandMutex
|
||||
return;
|
||||
}
|
||||
|
||||
if (!command->permission.empty() && !u->HasCommand(command->permission))
|
||||
if (!this->source.permission.empty() && !u->HasCommand(this->source.permission))
|
||||
{
|
||||
u->SendMessage(bi, ACCESS_DENIED);
|
||||
Log(LOG_COMMAND, "denied", bi) << "Access denied for user " << u->GetMask() << " with command " << command;
|
||||
|
||||
Reference in New Issue
Block a user