summaryrefslogtreecommitdiff
path: root/modules/commands/ns_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-03-01 04:31:52 -0500
committerAdam <Adam@anope.org>2014-03-01 04:31:52 -0500
commitb70f72bf2b1f48852f1fc9f813457b3b778e07c3 (patch)
tree10bc3dac8e289c9bbcbdf59a768d57781c93d65f /modules/commands/ns_set.cpp
parent2ad4c1906ecdf2652f10e04049148f4c078d2264 (diff)
Do not allow changing the email of unconfirmed accounts
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."));