diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-13 03:58:37 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-13 03:58:37 +0000 |
commit | f4cc123f16d37cbfc70c7c5893ee37a0c984e668 (patch) | |
tree | 49e565afa1e92d0413a6548120bed8348aba51dc /src | |
parent | e3486a3e4bca3a72babc81bb9b916ef702f6779e (diff) |
Removed super admin requirement for operserv/umode operserv/oline and operserv/svsnick, and replaced with opertype command strings
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2502 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/os_oline.c | 9 | ||||
-rw-r--r-- | src/core/os_svsnick.c | 9 | ||||
-rw-r--r-- | src/core/os_umode.c | 9 |
3 files changed, 3 insertions, 24 deletions
diff --git a/src/core/os_oline.c b/src/core/os_oline.c index 6bb7f592a..f394a3449 100644 --- a/src/core/os_oline.c +++ b/src/core/os_oline.c @@ -18,7 +18,7 @@ class CommandOSOLine : public Command { public: - CommandOSOLine() : Command("OLINE", 2, 2) + CommandOSOLine() : Command("OLINE", 2, 2, "operserv/oline") { } @@ -28,13 +28,6 @@ class CommandOSOLine : public Command const char *flag = params[1].c_str(); User *u2 = NULL; - /* Only allow this if SuperAdmin is enabled */ - if (!u->isSuperAdmin) - { - notice_lang(s_OperServ, u, OPER_SUPER_ADMIN_ONLY); - return MOD_CONT; - } - /* let's check whether the user is online */ if (!(u2 = finduser(nick))) notice_lang(s_OperServ, u, NICK_X_NOT_IN_USE, nick); diff --git a/src/core/os_svsnick.c b/src/core/os_svsnick.c index 6f25528a1..3dfdaf12d 100644 --- a/src/core/os_svsnick.c +++ b/src/core/os_svsnick.c @@ -18,7 +18,7 @@ class CommandOSSVSNick : public Command { public: - CommandOSSVSNick() : Command("SVSNICK", 2, 2) + CommandOSSVSNick() : Command("SVSNICK", 2, 2, "operserv/svsnick") { } @@ -30,13 +30,6 @@ class CommandOSSVSNick : public Command NickAlias *na; const char *c; - /* Only allow this if SuperAdmin is enabled */ - if (!u->isSuperAdmin) - { - notice_lang(s_OperServ, u, OPER_SUPER_ADMIN_ONLY); - return MOD_CONT; - } - /* Truncate long nicknames to NICKMAX-2 characters */ if (strlen(newnick) > NICKMAX - 2) { diff --git a/src/core/os_umode.c b/src/core/os_umode.c index 353838eae..9868f4653 100644 --- a/src/core/os_umode.c +++ b/src/core/os_umode.c @@ -18,7 +18,7 @@ class CommandOSUMode : public Command { public: - CommandOSUMode() : Command("UMODE", 2, 2) + CommandOSUMode() : Command("UMODE", 2, 2, "operserv/umode") { } @@ -29,13 +29,6 @@ class CommandOSUMode : public Command User *u2; - /* Only allow this if SuperAdmin is enabled */ - if (!u->isSuperAdmin) - { - notice_lang(s_OperServ, u, OPER_SUPER_ADMIN_ONLY); - return MOD_CONT; - } - /** * Only accept a +/- mode string *-rob |