1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 14:26:39 +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:
Adam-
2009-09-13 03:58:37 +00:00
parent e3486a3e4b
commit f4cc123f16
16 changed files with 27 additions and 65 deletions
+3 -3
View File
@@ -532,7 +532,7 @@ options
* operserv/szline operserv/clearmodes operserv/staff operserv/defcon
* operserv/modload operserv/jupe operserv/set operserv/noop
* operserv/quit operserv/update operserv/reload operserv/restart
* operserv/shutdown
* operserv/shutdown operserv/svsnick operserv/oline operserv/umode
*
* First, we define 'opertypes', which are named whatever we want ('Network Administrator', etc).
* These can contain commands for oper-only strings (see above) which grants access to that specific command,
@@ -563,8 +563,8 @@ opertype
opertype
{
name ="Helper"
privs ="hostserv/set"
name = "Helper"
privs = "hostserv/set"
}
/*
+2 -3
View File
@@ -5583,14 +5583,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Syntax: UMODE user modes
Allows Super Admins to set user modes for any user.
Allows Services Operators to set user modes for any user.
Parameters are the same as for the standard /MODE
command.
OPER_HELP_OLINE
Syntax: OLINE user flags
Allows Super Admins to give Operflags to any user.
Allows Services Operators to give Operflags to any user.
Flags have to be prefixed with a "+" or a "-". To
remove all flags simply type a "-" instead of any flags.
@@ -5619,7 +5619,6 @@ OPER_HELP_SVSNICK
Syntax: SVSNICK nick newnick
Forcefully changes a user's nickname from nick to newnick.
Limited to Super Admins.
OPER_HELP_AKILL
Sintàxi: AKILL ADD [+expiració] mascara raó
+2 -3
View File
@@ -5627,14 +5627,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Syntax: UMODE User Modi
Erlaubt es Super Adminstratoren die Usermodi eines
Erlaubt es Services Operators die Usermodi eines
beliebigen Users zu ändern. Der Paramater hat das gleiche
Format wie der normale /MODE Befehl.
OPER_HELP_OLINE
Syntax: OLINE User Flags
Erlaubt es Super Adminstratoren einem User Operflags
Erlaubt es Services Operators einem User Operflags
zu setzen.Den Flags muss ein "+" oder ein "-" vorangestellt
werden. Um alle Operflags zu entfernen, nutze einfach ein
"-" ohne Operflags.
@@ -5661,7 +5661,6 @@ OPER_HELP_SVSNICK
Syntax: SVSNICK Nickname Neuer-Nickname
Erzwingt die Änderung des Nicknamens eines User zu dem neuen Nicknamen.
Limited to Super Admins.
OPER_HELP_AKILL
Syntax: AKILL ADD [+Zeit] Maske Grund
+2 -3
View File
@@ -5347,14 +5347,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Syntax: UMODE user modes
Allows Super Admins to set user modes for any user.
Allows Services Opers to set user modes for any user.
Parameters are the same as for the standard /MODE
command.
OPER_HELP_OLINE
Syntax: OLINE user flags
Allows Super Admins to give Operflags to any user.
Allows Services Opers to give Operflags to any user.
Flags have to be prefixed with a "+" or a "-". To
remove all flags simply type a "-" instead of any flags.
@@ -5379,7 +5379,6 @@ OPER_HELP_SVSNICK
Syntax: SVSNICK nick newnick
Forcefully changes a user's nickname from nick to newnick.
Limited to Super Admins.
OPER_HELP_AKILL
Syntax: AKILL ADD [+expiry] mask reason
+2 -3
View File
@@ -5552,14 +5552,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Sintaxis: UMODE usuario modos
Permite a Super Admins a setear modos de
Permite a Services Operators a setear modos de
usuarios para cualquier usuario. Los parametros son los
mismos que para el comando /MODE.
OPER_HELP_OLINE
Sintaxis: OLINE usuario opciones
Permite a Super Admins a dar permisos de
Permite a Services Operators a dar permisos de
operador a cualquier usuario. Las opciones deben estar
antepuestas con un "+" o un "-". Para remover todas las
opciones simplemente tipear un "-" en vez de cualquier
@@ -5590,7 +5590,6 @@ OPER_HELP_SVSNICK
Syntax: SVSNICK nick nuevonick
Cambia, a la fuerza, el nick del usuario from nick a nuevonick.
Limitado a Super Admins.
OPER_HELP_AKILL
Sintaxis: AKILL ADD [+expiracion] mascara razon
+1 -4
View File
@@ -5621,7 +5621,7 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Syntaxe: UMODE pseudo modes
Permet aux Super Admins de changer un mode d'un utilisateur.
Permet aux Services Operators de changer un mode d'un utilisateur.
OPER_HELP_OLINE
Syntaxe: OLINE pseudo flags
@@ -5629,8 +5629,6 @@ OPER_HELP_OLINE
Permet de mettre un OperFlag à un utilisateur.
Préfixes: "+" et "-". Pour tout supprimer, spécifiez "-"
Limité aux Super Admins.
OPER_HELP_CLEARMODES
Syntaxe: CLEARMODES canal [ALL]
@@ -5656,7 +5654,6 @@ OPER_HELP_SVSNICK
Syntaxe: SVSNICK pseudo nouveau-pseudo
Force le changement de pseudo d'un pseudo.
Limité aux Super Admins.
OPER_HELP_AKILL
Syntaxe: AKILL ADD [+échéance] masque raison
+2 -3
View File
@@ -5512,14 +5512,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Syntax: UMODE user modes
Allows Super Admins to set user modes for any user.
Allows Services Operators to set user modes for any user.
Parameters are the same as for the standard /MODE
command.
OPER_HELP_OLINE
Syntax: OLINE user flags
Allows Super Admins to give Operflags to any user.
Allows Services Operators to give Operflags to any user.
Flags have to be prefixed with a "+" or a "-". To
remove all flags simply type a "-" instead of any flags.
@@ -5548,7 +5548,6 @@ OPER_HELP_SVSNICK
Syntax: SVSNICK nick newnick
Forcefully changes a user's nickname from nick to newnick.
Limited to Super Admins.
OPER_HELP_AKILL
Óýíôáîç: AKILL ADD [+expiry] ìÜóêá ëüãïò
-5
View File
@@ -5432,8 +5432,6 @@ OPER_HELP_UMODE
Megengedi a szervíz adminoknak, hogy egy user felhasználói
módjait megváltoztassa. Parameterek ugyanazok mint a
szabvány /MODE parancsnál.
Korlátozva Szuper adminnak.
OPER_HELP_OLINE
Syntax: OLINE user flagek
@@ -5442,8 +5440,6 @@ OPER_HELP_OLINE
operflaget adjon. Elõjelként "+" vagy "-" adható meg.
Ha csak a "-" paraméter adod meg akkor mindent eltávolít.
Korlátozva Szuper adminnak.
OPER_HELP_CLEARMODES
Syntax: CLEARMODES szoba [ALL]
@@ -5469,7 +5465,6 @@ OPER_HELP_SVSNICK
Syntax: SVSNICK nick újnick
Erõszakkal meváltóztatja a user nickevét újnicknévre.
Limited to Super Admins.
OPER_HELP_AKILL
Syntax: AKILL ADD [ +lejárat] maszk indok
+2 -3
View File
@@ -5428,14 +5428,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Sintassi: UMODE nick modi
Permette ai Super Admins di impostare i modi per
Permette ai Services Operators di impostare i modi per
qualsiasi utente. I parametri sono gli stessi del
comando /MODE standard.
OPER_HELP_OLINE
Sintassi: OLINE nick flag
Permette ai Super Admins di impostare le Operflag
Permette ai Services Operators di impostare le Operflag
per qualsiasi utente. Le flag devono essere introdotte
da "+" o "-". Per rimuovere tutte le flag, è sufficiente
usare "-" senza altri parametri.
@@ -5461,7 +5461,6 @@ OPER_HELP_SVSNICK
Sintassi: SVSNICK nick nuovonick
Forza il cambio del nickname di un utente da nick a newnick.
Limited to Super Admins.
OPER_HELP_AKILL
Sintassi: AKILL ADD [+durata] mask motivo
+2 -3
View File
@@ -5503,14 +5503,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Gebruik: UMODE gebruiker modes
Stelt Super Admins in staat gebruikersmodes van
Stelt Services Operators in staat gebruikersmodes van
elke willekeurige gebruiker in te stellen. De paramenters
zijn hetzelfde als van een standaard /MODE commando.
OPER_HELP_OLINE
Gebruik: OLINE gebruiker flags
Stelt Super Admins in staat om Operflags te geven
Stelt Services Operators in staat om Operflags te geven
aan elke willekeurig gebruiker. Flags moeten worden vooraf
gegeaan door een "+" of een "-". Om alle flags te verwijderen
kun je simpelweg een "-" typen in plaats van de flags.
@@ -5537,7 +5537,6 @@ OPER_HELP_SVSNICK
Gebruik: SVSNICK nick nieuwe nick
Veranderd een gebruiker's nick van nick naar nieuwe nick.
Gelimiteerd tot Super Admins.
OPER_HELP_AKILL
Gebruik: AKILL ADD [+verlooptijd] mask reden
+2 -2
View File
@@ -6544,14 +6544,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Sk³adnia: UMODE u¿ytkownik flagi
Pozwala super-administratorom zmieniaæ flagi
Pozwala Services Operators zmieniaæ flagi
innym u¿ytkownikom. Parametry s± identyczne jak
dla komendy /MODE.
OPER_HELP_OLINE
Sk³adnia: OLINE nick flagi
Pozwala super-administratorom na nadanie wskazanemu
Pozwala Services Operators na nadanie wskazanemu
u¿ytkownikowi uprawnieñ irc operatora z okre¶lonymi
flagami. Flagi powinny byæ poprzedzone znakami "+" lub "-".
Aby usun±æ wszystkie flagi wystarczy podaæ "-".
+2 -3
View File
@@ -5380,14 +5380,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Sintaxe: UMODE usuário modos
Permite aos Super Admins ajustar os
Permite aos Services Operators ajustar os
modos de usuário para qualquer usuário. Os parâmetros
são os mesmos do comando /MODE padrão.
OPER_HELP_OLINE
Sintaxe: OLINE usuário flags
Permite aos Super Admins dar flags de Oper
Permite aos Services Operators dar flags de Oper
a qualquer usuário. Flags devem ser prefixadas com "+" ou
"-". Para remover todas as flags apenas digite um "-" em
vez de usar alguma flag.
@@ -5413,7 +5413,6 @@ OPER_HELP_SVSNICK
Sintaxe: SVSNICK nick novo-nick
Força a mudança do nick de um usuário, de nick a novo-nick.
Limitado aos Super-Admins.
OPER_HELP_AKILL
Sintaxe: AKILL ADD [+tempo] máscara motivo
+2 -3
View File
@@ -5476,14 +5476,14 @@ OPER_HELP_MODE
OPER_HELP_UMODE
Syntax: UMODE user modes
Allows Super Admins to set user modes for any user.
Allows Services Operators to set user modes for any user.
Parameters are the same as for the standard /MODE
command.
OPER_HELP_OLINE
Syntax: OLINE user flags
Allows Super Admins to give Operflags to any user.
Allows Services Operators to give Operflags to any user.
Flags have to be prefixed with a "+" or a "-". To
remove all flags simply type a "-" instead of any flags.
@@ -5512,7 +5512,6 @@ OPER_HELP_SVSNICK
Syntax: SVSNICK nick newnick
Forcefully changes a user's nickname from nick to newnick.
Limited to Super Admins.
OPER_HELP_AKILL
Kullanýmý: AKILL ADD [+zamanaþýmý] mask sebep
+1 -8
View File
@@ -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);
+1 -8
View File
@@ -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
View File
@@ -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