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:
@@ -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."));
|
||||
|
||||
Reference in New Issue
Block a user