diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-05-05 22:26:41 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-05-05 22:26:41 +0000 |
commit | dc102049b0e91c5aa730f067c26e33f3e138386d (patch) | |
tree | b8b4b04d3996becc48e67b6fc1f0a87fdb5ce6f7 /src/command.cpp | |
parent | 845b15ddd99d5b6fde905045595e9d70f7a1c6f2 (diff) |
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
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp index ae2cae740..1718cb8a7 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -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; |