diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-09 01:09:55 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-09 01:09:55 +0000 |
commit | 6a70b5385bca7f13822641f976558936b1a5d8e0 (patch) | |
tree | d80ebaf0c31c7c239cc0d6eafc31314b093e6ccd /src | |
parent | f483ab87c62b6613c63486005aa9d1793e5b19ac (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ns_getpass.c | 4 | ||||
-rw-r--r-- | src/core/ns_sendpass.c | 4 |
2 files changed, 4 insertions, 4 deletions
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); |