mirror of
https://github.com/anope/anope.git
synced 2026-07-05 17:43:13 +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:
@@ -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")
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user