1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 23:33:12 +02:00

Do not allow changing the email of unconfirmed accounts

This commit is contained in:
Adam
2014-03-01 04:31:52 -05:00
parent 2ad4c1906e
commit b70f72bf2b
+6
View File
@@ -449,6 +449,12 @@ class CommandNSSetEmail : public Command
}
NickCore *nc = na->nc;
if (nc->HasExt("UNCONFIRMED"))
{
source.Reply(_("You may not change the email of an unconfirmed account."));
return;
}
if (param.empty() && Config->GetModule("nickserv")->Get<bool>("forceemail", "yes"))
{
source.Reply(_("You cannot unset the e-mail on this network."));