diff options
author | Adam <Adam@anope.org> | 2011-08-04 21:59:01 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-04 21:59:01 -0400 |
commit | 9ec18a3b020932eee6242c878149c484f49b13cb (patch) | |
tree | 6f0470e27bf4f3ced0f6833db00134f4b29a79a9 /modules/extra/m_async_commands.cpp | |
parent | 773a1f3075fa12700d41598c0b8a8dd7caf9011e (diff) |
Added a command:permission setting
Diffstat (limited to 'modules/extra/m_async_commands.cpp')
-rw-r--r-- | modules/extra/m_async_commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/m_async_commands.cpp b/modules/extra/m_async_commands.cpp index 84d7a4f41..814c86c92 100644 --- a/modules/extra/m_async_commands.cpp +++ b/modules/extra/m_async_commands.cpp @@ -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; |