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/ms_staff.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/core/ms_staff.c') diff --git a/src/core/ms_staff.c b/src/core/ms_staff.c index 7d4ca6665..151e0812b 100644 --- a/src/core/ms_staff.c +++ b/src/core/ms_staff.c @@ -18,7 +18,7 @@ class CommandMSStaff : public Command { public: - CommandMSStaff() : Command("STAFF", 1, 1) + CommandMSStaff() : Command("STAFF", 1, 1, "memoserv/staff") { } @@ -28,12 +28,6 @@ class CommandMSStaff : public Command int i, z = 0; const char *text = params[0].c_str(); - if (!u->nc->HasCommand("memoserv/staff")) - { - // XXX: error? - return MOD_CONT; - } - if (readonly) { notice_lang(s_MemoServ, u, MEMO_SEND_DISABLED); -- cgit