summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-05-05 22:26:41 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-05-05 22:26:41 +0000
commitdc102049b0e91c5aa730f067c26e33f3e138386d (patch)
treeb8b4b04d3996becc48e67b6fc1f0a87fdb5ce6f7 /src/modules
parent845b15ddd99d5b6fde905045595e9d70f7a1c6f2 (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/modules')
-rw-r--r--src/modules/os_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/os_info.c b/src/modules/os_info.c
index e1234156a..20dc839e3 100644
--- a/src/modules/os_info.c
+++ b/src/modules/os_info.c
@@ -106,7 +106,7 @@ class CommandNSOInfo : public Command
return MOD_CONT;
}
public:
- CommandNSOInfo() : Command("OINFO", 2, 3)
+ CommandNSOInfo() : Command("OINFO", 2, 3, "nickserv/oinfo")
{
}
@@ -193,7 +193,7 @@ class CommandCSOInfo : public Command
return MOD_CONT;
}
public:
- CommandCSOInfo() : Command("OINFO", 2, 3)
+ CommandCSOInfo() : Command("OINFO", 2, 3, "chanserv/oinfo")
{
}