diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-22 11:01:41 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-22 11:01:41 +0000 |
| commit | 9502567453cccfe6193cb0def511e11078bb4463 (patch) | |
| tree | becab865f570871850cc1b7fd542a180c255459a /modules/nickserv | |
| parent | 14472c5a95e34b814e65c318863d47b56ca1097f (diff) | |
Fix the NickServ help message showing a wrong min password length.
Closes #357.
Diffstat (limited to 'modules/nickserv')
| -rw-r--r-- | modules/nickserv/ns_register.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/nickserv/ns_register.cpp b/modules/nickserv/ns_register.cpp index 8e888994a..5ee5fccb2 100644 --- a/modules/nickserv/ns_register.cpp +++ b/modules/nickserv/ns_register.cpp @@ -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")) { |
