From 6a70b5385bca7f13822641f976558936b1a5d8e0 Mon Sep 17 00:00:00 2001 From: Adam- Date: Fri, 9 Apr 2010 01:09:55 +0000 Subject: Fixed ns_getpass and ns_sendpass to not load when there is no supported encryption loaded git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2864 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_getpass.c | 4 ++-- src/core/ns_sendpass.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/core/ns_getpass.c b/src/core/ns_getpass.c index 026f0ecdc..367131ab3 100644 --- a/src/core/ns_getpass.c +++ b/src/core/ns_getpass.c @@ -83,8 +83,8 @@ class NSGetPass : public Module this->AddCommand(NICKSERV, new CommandNSGetPass()); - std::string tmp_pass = "tmp"; - if (!enc_decrypt(tmp_pass, tmp_pass)) + std::string tmp_pass = "plain:tmp"; + if (enc_decrypt(tmp_pass, tmp_pass) == -1) throw ModuleException("Incompatible with the encryption module being used"); ModuleManager::Attach(I_OnNickServHelp, this); diff --git a/src/core/ns_sendpass.c b/src/core/ns_sendpass.c index 30bf151b0..5cab1b367 100644 --- a/src/core/ns_sendpass.c +++ b/src/core/ns_sendpass.c @@ -97,8 +97,8 @@ class NSSendPass : public Module if (!Config.UseMail) throw ModuleException("Not using mail, whut."); - std::string tmp_pass = "tmp"; - if (!enc_decrypt(tmp_pass, tmp_pass)) + std::string tmp_pass = "plain:tmp"; + if (enc_decrypt(tmp_pass, tmp_pass) == -1) throw ModuleException("Incompatible with the encryption module being used"); ModuleManager::Attach(I_OnNickServHelp, this); -- cgit