mirror of
https://github.com/anope/anope.git
synced 2026-07-09 06:03:14 +02:00
NickServ: Change a few log wordings and add missing log calls to some commands.
ns_suspend and cs_suspend: Fix log wording, and correct syntax to show the reason is optional.
This commit is contained in:
@@ -41,6 +41,7 @@ class CommandNSAccess : public Command
|
||||
}
|
||||
|
||||
nc->AddAccess(mask);
|
||||
Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to ADD mask " << mask << " to " << nc->display;
|
||||
source.Reply(_("\002%s\002 added to %s's access list."), mask.c_str(), nc->display.c_str());
|
||||
|
||||
return;
|
||||
@@ -66,8 +67,9 @@ class CommandNSAccess : public Command
|
||||
return;
|
||||
}
|
||||
|
||||
source.Reply(_("\002%s\002 deleted from %s's access list."), mask.c_str(), nc->display.c_str());
|
||||
nc->EraseAccess(mask);
|
||||
Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to DELETE mask " << mask << " from " << nc->display;
|
||||
source.Reply(_("\002%s\002 deleted from %s's access list."), mask.c_str(), nc->display.c_str());
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -76,6 +78,8 @@ class CommandNSAccess : public Command
|
||||
{
|
||||
unsigned i, end;
|
||||
|
||||
Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to view the access list for " << nc->display;
|
||||
|
||||
if (nc->access.empty())
|
||||
{
|
||||
source.Reply(_("%s's access list is empty."), nc->display.c_str());
|
||||
|
||||
Reference in New Issue
Block a user