diff options
author | Adam <Adam@anope.org> | 2013-09-27 15:54:21 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 19:11:02 -0400 |
commit | b319fb089c144312ab9141d6f6469d50d9d7a1ea (patch) | |
tree | b6da2ec3a23ff7f2da9ae6ce35d591faa6f57d72 /modules/commands/ns_getpass.cpp | |
parent | 17196887ad1e6f9886c6cd3109bd8ede16ae7343 (diff) |
Fix compile warnings and errors found by clang
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"); } |