diff options
Diffstat (limited to 'modules/commands/ns_getpass.cpp')
-rw-r--r-- | modules/commands/ns_getpass.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/commands/ns_getpass.cpp b/modules/commands/ns_getpass.cpp index 987e98827..a99181b3f 100644 --- a/modules/commands/ns_getpass.cpp +++ b/modules/commands/ns_getpass.cpp @@ -13,6 +13,8 @@ #include "module.h" +static ServiceReference<NickServService> 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<bool>("secureadmins", "yes") && na->nc->IsServicesOper()) source.Reply(_("You may not get the password of other Services Operators.")); else { @@ -62,10 +64,9 @@ class NSGetPass : public Module CommandNSGetPass commandnsgetpass; public: - NSGetPass(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), + NSGetPass(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandnsgetpass(this) { - this->SetAuthor("Anope"); Anope::string tmp_pass = "plain:tmp"; if (Anope::Decrypt(tmp_pass, tmp_pass) == -1) |