summaryrefslogtreecommitdiff
path: root/modules/commands/ns_suspend.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-04-25 19:02:09 -0400
committerAdam <Adam@anope.org>2012-04-25 19:02:09 -0400
commit83ee20fc2910e9ea0cac250e767d20f17576d98a (patch)
tree56b9264088d9a26d1638dbe277202755a1492ffd /modules/commands/ns_suspend.cpp
parentb08aa4ed92625693b60cd490f1d8f10ca8fdaefd (diff)
Clarify access denied messages caused by NSSecureAdmins
Diffstat (limited to 'modules/commands/ns_suspend.cpp')
-rw-r--r--modules/commands/ns_suspend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp
index f965be321..4fcbe6c38 100644
--- a/modules/commands/ns_suspend.cpp
+++ b/modules/commands/ns_suspend.cpp
@@ -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;
}