From dc102049b0e91c5aa730f067c26e33f3e138386d Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 5 May 2009 22:26:41 +0000 Subject: 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 --- src/modules/os_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') 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") { } -- cgit