diff options
Diffstat (limited to 'modules/commands/ns_getpass.cpp')
-rw-r--r-- | modules/commands/ns_getpass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_getpass.cpp b/modules/commands/ns_getpass.cpp index cb320ad76..1d2bef754 100644 --- a/modules/commands/ns_getpass.cpp +++ b/modules/commands/ns_getpass.cpp @@ -65,7 +65,7 @@ class NSGetPass : public Module { Anope::string tmp_pass = "plain:tmp"; - if (Anope::Decrypt(tmp_pass, tmp_pass) == -1) + if (!Anope::Decrypt(tmp_pass, tmp_pass)) throw ModuleException("Incompatible with the encryption module being used"); } |