summaryrefslogtreecommitdiff
path: root/modules/commands/ns_resetpass.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-03-09 08:34:34 -0400
committerAdam <Adam@anope.org>2014-03-09 10:07:13 -0400
commit1a1a781b72d7920be44ffdbf582057279fe8125e (patch)
tree376b6b44725f6937b297e63343bde9e0d12c1155 /modules/commands/ns_resetpass.cpp
parent4b5ce8a9728db477b75766a60aec48981eff0750 (diff)
Remove mail:restrict as it is no longer useful. Changes nickserv/resetpass default to allow normal users to use it.
Diffstat (limited to 'modules/commands/ns_resetpass.cpp')
-rw-r--r--modules/commands/ns_resetpass.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/commands/ns_resetpass.cpp b/modules/commands/ns_resetpass.cpp
index a7d92b98e..c7c0302e7 100644
--- a/modules/commands/ns_resetpass.cpp
+++ b/modules/commands/ns_resetpass.cpp
@@ -27,9 +27,7 @@ class CommandNSResetPass : public Command
{
const NickAlias *na;
- if (Config->GetBlock("mail")->Get<bool>("restrict") && !source.HasCommand("nickserv/resetpass"))
- source.Reply(ACCESS_DENIED);
- else if (!(na = NickAlias::Find(params[0])))
+ if (!(na = NickAlias::Find(params[0])))
source.Reply(NICK_X_NOT_REGISTERED, params[0].c_str());
else if (!na->nc->email.equals_ci(params[1]))
source.Reply(_("Incorrect email address."));