From 1d0bb9b26b7ad58ab0bf979ac046f4511b3bf12b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 5 May 2013 01:55:04 -0400 Subject: Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in. --- modules/commands/ns_getpass.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/commands/ns_getpass.cpp') diff --git a/modules/commands/ns_getpass.cpp b/modules/commands/ns_getpass.cpp index aad6fb55b..a99181b3f 100644 --- a/modules/commands/ns_getpass.cpp +++ b/modules/commands/ns_getpass.cpp @@ -13,6 +13,8 @@ #include "module.h" +static ServiceReference nickserv("NickServService", "NickServ"); + class CommandNSGetPass : public Command { public: @@ -30,7 +32,7 @@ class CommandNSGetPass : public Command if (!(na = NickAlias::Find(nick))) source.Reply(NICK_X_NOT_REGISTERED, nick.c_str()); - else if (Config->NSSecureAdmins && na->nc->IsServicesOper()) + else if (Config->GetModule("nickserv")->Get("secureadmins", "yes") && na->nc->IsServicesOper()) source.Reply(_("You may not get the password of other Services Operators.")); else { -- cgit