From 7d27689d051995c7bc44645d6645a0f7f6cb7bfd Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 24 Dec 2013 20:20:47 -0500 Subject: [PATCH] Set a description for the resend command --- modules/commands/ns_register.cpp | 7 +++++-- 1 file 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 ¶ms) anope_override { if (!Config->GetModule(this->owner)->Get("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; }