mirror of
https://github.com/anope/anope.git
synced 2026-06-25 19:56:39 +02:00
Adds check for opertype permissions to mod_run_cmd() in commands.c, and adds optional parameter to Command class constructor that takes the opertype permissions for the command.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2292 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@
|
||||
#include "services.h"
|
||||
#include "modules.h"
|
||||
|
||||
Command::Command(const std::string &sname, size_t min_params, size_t max_params) : MaxParams(max_params), MinParams(min_params), name(sname)
|
||||
Command::Command(const std::string &sname, size_t min_params, size_t max_params, const std::string &spermission) : MaxParams(max_params), MinParams(min_params), name(sname), permission(spermission)
|
||||
{
|
||||
this->flags = 0;
|
||||
this->help_param1 = NULL;
|
||||
|
||||
Reference in New Issue
Block a user