mirror of
https://github.com/anope/anope.git
synced 2026-07-10 23:23:13 +02:00
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
This commit is contained in:
+1
-8
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
+1
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user