diff options
author | Adam <Adam@anope.org> | 2013-05-17 22:53:55 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-17 22:53:55 -0400 |
commit | cc4a14b0badfe3d617ec2dd230d7921f8650a069 (patch) | |
tree | 73ded53114ee7b100c548bdb448a6cc36b392da8 /modules/commands/ns_register.cpp | |
parent | 934b5843744e586ce9a3c7725a19c7ddffe14ee8 (diff) |
Removed some hard coded command names in help output
Diffstat (limited to 'modules/commands/ns_register.cpp')
-rw-r--r-- | modules/commands/ns_register.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index da2f6de59..2d2f59877 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -220,7 +220,10 @@ class CommandNSRegister : public Command if (SendRegmail(u, na, source.service)) { time_t unconfirmed_expire = Config->GetModule("nickserv")->Get<time_t>("unconfirmedexpire", "1d"); - source.Reply(_("A passcode has been sent to %s, please type \002%s%s CONFIRM <passcode>\002 to confirm your email address."), email.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str()); + BotInfo *bi; + Anope::string cmd; + if (Command::FindCommandFromService("nickserv/confirm", bi, cmd)) + source.Reply(_("A passcode has been sent to %s, please type \002%s%s %s <passcode>\002 to confirm your email address."), email.c_str(), Config->StrictPrivmsg.c_str(), bi->nick.c_str(), cmd.c_str()); source.Reply(_("If you do not confirm your email address within %s your account will expire."), Anope::Duration(unconfirmed_expire).c_str()); } } |