mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:24:49 +02:00
Fix confirming accounts when admin-only confirmation is enabled.
This commit is contained in:
@@ -16,8 +16,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Anope\n"
|
"Project-Id-Version: Anope\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-04-26 18:25+0100\n"
|
"POT-Creation-Date: 2026-05-14 09:44+0100\n"
|
||||||
"PO-Revision-Date: 2026-04-26 18:25+0100\n"
|
"PO-Revision-Date: 2026-05-14 09:44+0100\n"
|
||||||
"Last-Translator: Sadie Powell <sadie@sadiepowell.dev>\n"
|
"Last-Translator: Sadie Powell <sadie@sadiepowell.dev>\n"
|
||||||
"Language-Team: English\n"
|
"Language-Team: English\n"
|
||||||
"Language: en_US\n"
|
"Language: en_US\n"
|
||||||
@@ -7234,6 +7234,11 @@ msgstr ""
|
|||||||
msgid "The registration confirmation code you specified for %s is incorrect."
|
msgid "The registration confirmation code you specified for %s is incorrect."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../modules/nickserv/ns_register.cpp
|
||||||
|
#, c-format
|
||||||
|
msgid "The registration of %s can only be confirmed by an administrator."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ../modules/nickserv/ns_info.cpp
|
#: ../modules/nickserv/ns_info.cpp
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "The services access status of %s will now be hidden from %s INFO displays."
|
msgid "The services access status of %s will now be hidden from %s INFO displays."
|
||||||
|
|||||||
@@ -275,18 +275,28 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto *passcode = nc->GetExt<Anope::string>("passcode");
|
if (!nc->HasExt("UNCONFIRMED"))
|
||||||
if (!passcode)
|
|
||||||
{
|
{
|
||||||
source.Reply(_("There is no registration confirmation pending for %s."),
|
source.Reply(_("There is no registration confirmation pending for %s."),
|
||||||
na->nick.c_str());
|
na->nick.c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!code.empty() && !code.equals_cs(*passcode))
|
|
||||||
|
if (!code.empty())
|
||||||
{
|
{
|
||||||
source.Reply(_("The registration confirmation code you specified for %s is incorrect."),
|
auto *passcode = nc->GetExt<Anope::string>("passcode");
|
||||||
na->nick.c_str());
|
if (passcode && !code.equals_cs(*passcode))
|
||||||
return;
|
{
|
||||||
|
source.Reply(_("The registration confirmation code you specified for %s is incorrect."),
|
||||||
|
na->nick.c_str());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (!passcode)
|
||||||
|
{
|
||||||
|
source.Reply(_("The registration of %s can only be confirmed by an administrator."),
|
||||||
|
na->nick.c_str());
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nc->Shrink<Anope::string>("passcode");
|
nc->Shrink<Anope::string>("passcode");
|
||||||
|
|||||||
Reference in New Issue
Block a user