diff options
author | Adam <Adam@anope.org> | 2013-12-24 20:20:47 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-12-24 20:20:47 -0500 |
commit | 7d27689d051995c7bc44645d6645a0f7f6cb7bfd (patch) | |
tree | 2792f99e622bea1a336aefeaa33c6e54fff52816 /modules/commands/ns_register.cpp | |
parent | 421e194c5a19a35a913f9509da0d194f835555a6 (diff) |
Set a description for the resend command
Diffstat (limited to 'modules/commands/ns_register.cpp')
-rw-r--r-- | modules/commands/ns_register.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 6ec6c2175..63b771400 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -286,12 +286,16 @@ class CommandNSResend : public Command public: CommandNSResend(Module *creator) : Command(creator, "nickserv/resend", 0, 0) { + this->SetDesc(_("Resend registration confirmation email")); } void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override { if (!Config->GetModule(this->owner)->Get<const Anope::string>("registration").equals_ci("mail")) + { + source.Reply(ACCESS_DENIED); return; + } const NickAlias *na = NickAlias::Find(source.GetNick()); @@ -323,8 +327,7 @@ class CommandNSResend : public Command this->SendSyntax(source); source.Reply(" "); - source.Reply(_("This command will re-send the auth code (also called passcode)\n" - "to the e-mail address of the nickname in the database.")); + source.Reply(_("This command will resend you the registration confirmation email.")); return true; } |