diff options
Diffstat (limited to 'modules/nickserv/ns_logout.cpp')
-rw-r--r-- | modules/nickserv/ns_logout.cpp | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/modules/nickserv/ns_logout.cpp b/modules/nickserv/ns_logout.cpp index c0095e95d..a5a6a2714 100644 --- a/modules/nickserv/ns_logout.cpp +++ b/modules/nickserv/ns_logout.cpp @@ -20,7 +20,7 @@ public: CommandNSLogout(Module *creator) : Command(creator, "nickserv/logout", 0, 2) { this->SetDesc(_("Reverses the effect of the IDENTIFY command")); - this->SetSyntax(_("[\037nickname\037 [REVALIDATE]]")); + this->SetSyntax(_("[\037nickname\037 [REVALIDATE]]"), [](auto &source) { return source.IsServicesOper(); }); } void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override @@ -64,17 +64,28 @@ public: { this->SendSyntax(source); source.Reply(" "); - source.Reply(_( - "Without a parameter, reverses the effect of the \002IDENTIFY\002 " - "command, i.e. make you not recognized as the real owner of the nick " - "anymore. Note, however, that you won't be asked to reidentify " - "yourself." - "\n\n" - "With a parameter, does the same for the given nick. If you " - "specify \002REVALIDATE\002 as well, services will ask the given nick " - "to re-identify. This is limited to \002Services Operators\002." - )); + if (source.IsServicesOper()) + { + source.Reply(_( + "Without a parameter, reverses the effect of the \002IDENTIFY\002 " + "command, i.e. make you not recognized as the real owner of the nick " + "anymore. Note, however, that you won't be asked to reidentify " + "yourself." + "\n\n" + "With a parameter, does the same for the given nick. If you " + "specify \002REVALIDATE\002 as well, services will ask the given nick " + "to re-identify. This is limited to \002Services Operators\002." + )); + } + else + { + source.Reply(_( + "Reverses the effect of the \002IDENTIFY\002 command, i.e. make you not " + "recognized as the real owner of the nick anymore. Note, however, that " + "you won't be asked to reidentify yourself." + )); + } return true; } }; |