1
0
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:
Adam
2011-08-04 21:59:01 -04:00
parent 773a1f3075
commit 9ec18a3b02
82 changed files with 329 additions and 297 deletions
+1 -1
View File
@@ -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;