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/core/os_oper.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/core/os_oper.c') diff --git a/src/core/os_oper.c b/src/core/os_oper.c index 9580ac5bd..88d82b1c6 100644 --- a/src/core/os_oper.c +++ b/src/core/os_oper.c @@ -196,7 +196,7 @@ class CommandOSOper : public Command return MOD_CONT; } public: - CommandOSOper() : Command("OPER", 1, 2) + CommandOSOper() : Command("OPER", 1, 2, "operserv/oper") { } @@ -204,12 +204,6 @@ class CommandOSOper : public Command { const char *cmd = params[0].c_str(); - if (!u->nc->HasCommand("operserv/oper")) - { - notice_lang(s_OperServ, u, ACCESS_DENIED); - return MOD_CONT; - } - if (!stricmp(cmd, "ADD")) return this->DoAdd(u, params); else if (!stricmp(cmd, "DEL")) -- cgit