summaryrefslogtreecommitdiff
path: root/modules/commands/ns_register.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-24 20:20:47 -0500
committerAdam <Adam@anope.org>2013-12-24 20:20:47 -0500
commit7d27689d051995c7bc44645d6645a0f7f6cb7bfd (patch)
tree2792f99e622bea1a336aefeaa33c6e54fff52816 /modules/commands/ns_register.cpp
parent421e194c5a19a35a913f9509da0d194f835555a6 (diff)
Set a description for the resend command
Diffstat (limited to 'modules/commands/ns_register.cpp')
-rw-r--r--modules/commands/ns_register.cpp7
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> &params) 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;
}