summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/ns_getpass.c4
-rw-r--r--src/core/ns_sendpass.c4
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);