diff options
author | Robby- <robby@chat.be> | 2013-09-29 05:02:22 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-29 15:42:22 -0400 |
commit | 32a57150ecddc75b1bfd2efc185575b76431cbff (patch) | |
tree | b1c99df49444ee138578432cd213fec6c0135406 /modules/commands/ns_access.cpp | |
parent | 2a5e8f1890ecc3a390d814cf24cbc9451a938840 (diff) |
ns_access: Allow LIST by Services Operators on suspended nicks. Change wording.
ns_ajoin: Fix the number of command parameters. Check for nick suspension. Do not allow just any Services Operator to access other users' AJOIN, require nickserv/ajoin. Change wording.
ns_cert: Add ability for Services Operators to modify other users' certificate lists.
Diffstat (limited to 'modules/commands/ns_access.cpp')
-rw-r--r-- | modules/commands/ns_access.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/ns_access.cpp b/modules/commands/ns_access.cpp index 8ea925868..2d18678bd 100644 --- a/modules/commands/ns_access.cpp +++ b/modules/commands/ns_access.cpp @@ -30,7 +30,7 @@ class CommandNSAccess : public Command if (nc->access.size() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax")) { - source.Reply(_("Sorry, you can only have %d access entries for a nickname."), Config->GetModule(this->owner)->Get<unsigned>("accessmax")); + source.Reply(_("Sorry, the maximum of %d access entries has been reached."), Config->GetModule(this->owner)->Get<unsigned>("accessmax")); return; } @@ -97,9 +97,9 @@ class CommandNSAccess : public Command CommandNSAccess(Module *creator) : Command(creator, "nickserv/access", 1, 3) { this->SetDesc(_("Modify the list of authorized addresses")); - this->SetSyntax(_("ADD [\037user\037] \037mask\037")); - this->SetSyntax(_("DEL [\037user\037] \037mask\037")); - this->SetSyntax(_("LIST [\037user\037]")); + this->SetSyntax(_("ADD [\037nickname\037] \037mask\037")); + this->SetSyntax(_("DEL [\037nickname\037] \037mask\037")); + this->SetSyntax(_("LIST [\037nickname\037]")); } void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override @@ -145,14 +145,14 @@ class CommandNSAccess : public Command source.Reply(BAD_USERHOST_MASK); source.Reply(MORE_INFO, Config->StrictPrivmsg.c_str(), source.service->nick.c_str(), source.command.c_str()); } + else if (cmd.equals_ci("LIST")) + return this->DoList(source, nc, mask); else if (nc->HasExt("NS_SUSPENDED")) source.Reply(NICK_X_SUSPENDED, nc->display.c_str()); else if (cmd.equals_ci("ADD")) return this->DoAdd(source, nc, mask); else if (cmd.equals_ci("DEL")) return this->DoDel(source, nc, mask); - else if (cmd.equals_ci("LIST")) - return this->DoList(source, nc, mask); else this->OnSyntaxError(source, ""); } |