summaryrefslogtreecommitdiff
path: root/modules/commands/ns_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/ns_set.cpp')
-rw-r--r--modules/commands/ns_set.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index bdaf9f7d7..e6526a913 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -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."));