summaryrefslogtreecommitdiff
path: root/src/core/ns_getpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ns_getpass.c')
-rw-r--r--src/core/ns_getpass.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ns_getpass.c b/src/core/ns_getpass.c
index 05373cedb..34bbd3137 100644
--- a/src/core/ns_getpass.c
+++ b/src/core/ns_getpass.c
@@ -91,6 +91,10 @@ class NSGetPass : public Module
this->AddCommand(NICKSERV, new CommandNSGetPass(), MOD_UNIQUE);
this->SetNickHelp(myNickServHelp);
+
+ char tmp_pass[PASSMAX];
+ if (!enc_decrypt("tmp", tmp_pass, PASSMAX - 1))
+ throw ModuleException("Incompatible with the encryption module being used");
}
};