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 /include/modules.h | |
| 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 'include/modules.h')
| -rw-r--r-- | include/modules.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index 90c307b41..1475c9f3d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -238,7 +238,7 @@ class CoreExport Command * @param max_params The maximum number of parameters the parser will create, after max_params, all will be combined into the last argument. * NOTE: If max_params is not set (default), there is no limit to the max number of params. */ - Command(const std::string &sname, size_t min_params, size_t max_params = 0); + Command(const std::string &sname, size_t min_params, size_t max_params = 0, const std::string &spermission = ""); virtual ~Command(); |
