From b70f72bf2b1f48852f1fc9f813457b3b778e07c3 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 1 Mar 2014 04:31:52 -0500 Subject: [PATCH] Do not allow changing the email of unconfirmed accounts --- modules/commands/ns_set.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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("forceemail", "yes")) { source.Reply(_("You cannot unset the e-mail on this network."));