mirror of
https://github.com/anope/anope.git
synced 2026-07-05 13:43:13 +02:00
Clarify access denied messages caused by NSSecureAdmins
This commit is contained in:
@@ -122,7 +122,7 @@ class CommandNSAccess : public Command
|
||||
}
|
||||
else if (Config->NSSecureAdmins && u->Account() != na->nc && na->nc->IsServicesOper())
|
||||
{
|
||||
source.Reply(ACCESS_DENIED);
|
||||
source.Reply(_("You may view or modify the access list of other services operators."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class CommandNSDrop : public Command
|
||||
if (!is_mine && !u->HasPriv("nickserv/drop"))
|
||||
source.Reply(ACCESS_DENIED);
|
||||
else if (Config->NSSecureAdmins && !is_mine && na->nc->IsServicesOper())
|
||||
source.Reply(ACCESS_DENIED);
|
||||
source.Reply(_("You may not drop other services operators nicknames."));
|
||||
else
|
||||
{
|
||||
if (readonly)
|
||||
|
||||
@@ -32,7 +32,7 @@ class CommandNSGetPass : public Command
|
||||
if (!(na = findnick(nick)))
|
||||
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
|
||||
else if (Config->NSSecureAdmins && na->nc->IsServicesOper())
|
||||
source.Reply(ACCESS_DENIED);
|
||||
source.Reply(_("You may not get the password of other services operators."));
|
||||
else
|
||||
{
|
||||
if (enc_decrypt(na->nc->pass, tmp_pass) == 1)
|
||||
|
||||
@@ -79,7 +79,7 @@ class CommandNSSASetPassword : public Command
|
||||
|
||||
if (Config->NSSecureAdmins && u->Account() != nc && nc->IsServicesOper())
|
||||
{
|
||||
source.Reply(ACCESS_DENIED);
|
||||
source.Reply(_("You may not change the password of other services operators."));
|
||||
return;
|
||||
}
|
||||
else if (nc->display.equals_ci(params[1]) || (Config->StrictPasswords && len < 5))
|
||||
|
||||
@@ -75,7 +75,7 @@ class CommandNSSetEmail : public Command
|
||||
}
|
||||
else if (Config->NSSecureAdmins && u->Account() != nc && nc->IsServicesOper())
|
||||
{
|
||||
source.Reply(ACCESS_DENIED);
|
||||
source.Reply(_("You may not change the email of other services operators."));
|
||||
return;
|
||||
}
|
||||
else if (!param.empty() && !MailValidate(param))
|
||||
|
||||
@@ -101,7 +101,7 @@ class CommandNSSuspend : public Command
|
||||
|
||||
if (Config->NSSecureAdmins && na->nc->IsServicesOper())
|
||||
{
|
||||
source.Reply(ACCESS_DENIED);
|
||||
source.Reply(_("You may not suspend other services operators nicknames."));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -186,9 +186,9 @@ class CommandNSUnSuspend : public Command
|
||||
return;
|
||||
}
|
||||
|
||||
if (Config->NSSecureAdmins && na->nc->IsServicesOper())
|
||||
if (!na->nc->HasFlag(NI_SUSPENDED))
|
||||
{
|
||||
source.Reply(ACCESS_DENIED);
|
||||
source.Reply(_("Nick %s is not suspended."), na->nick.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user