1
0
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:
Adam
2012-04-25 19:02:09 -04:00
parent b08aa4ed92
commit 83ee20fc29
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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))
+1 -1
View File
@@ -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))
+3 -3
View File
@@ -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;
}