1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 06:03:14 +02:00

Fix the NickServ help message showing a wrong min password length.

Closes #357.
This commit is contained in:
Sadie Powell
2024-02-22 11:01:41 +00:00
parent 14472c5a95
commit 9502567453
7 changed files with 16 additions and 14 deletions
+4 -2
View File
@@ -271,6 +271,7 @@ public:
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
{
unsigned int minpasslen = Config->GetModule("nickserv")->Get<unsigned>("minpasslen", "10");
this->SendSyntax(source);
source.Reply(" ");
source.Reply(_("Registers your nickname in the %s database. Once\n"
@@ -288,9 +289,10 @@ public:
"your nickname as a password is a much worse idea ;) and,\n"
"in fact, %s will not allow it. Also, short\n"
"passwords are vulnerable to trial-and-error searches, so\n"
"you should choose a password at least 5 characters long.\n"
"you should choose a password at least %u characters long.\n"
"Finally, the space character cannot be used in passwords."),
source.service->nick.c_str(), source.service->nick.c_str());
source.service->nick.c_str(), source.service->nick.c_str(),
minpasslen);
if (!Config->GetModule("nickserv")->Get<bool>("forceemail", "yes"))
{